Skip to content

Containers: update environment #1167

Open
pj1031999 wants to merge 10 commits intocahirwpz:masterfrom
pj1031999:containers
Open

Containers: update environment #1167
pj1031999 wants to merge 10 commits intocahirwpz:masterfrom
pj1031999:containers

Conversation

@pj1031999
Copy link
Copy Markdown
Collaborator

@pj1031999 pj1031999 commented Sep 12, 2021

  • build toolchain in container
  • bump Debian version
  • add ability to build & run Mimiker in local environment

Example how to build local env:

  • git clone git@github.com:cahirwpz/mimiker.git
  • cd mimiker
  • podman build -t mimiker .
  • podman container run -it --rm --hostname mimiker -v /home/user/mimiker:/root/mimiker mimiker /bin/bash

after last command you are in bash shell inside container, you can install your favourite set of packages or just build Mimiker. All changes are synchronized between local directory /home/user/mimiker and /root/mimiker inside container, so you can use your favourite editor and distro.

podman is not required but it's recommended (in non-priv mode). It's possible to still run podman as root or use docker for that purpose but then you are on your own with permissions inside mimiker directory.

Note: building container is SLOW and IO INTENSIVE process.

Requires #1166

* New toolchain version - 1.5.2
* Update gcc to 11.2.0
* Update binutils to 2.37
* Remove support to x86

x86 toolchain is not used by Mimiker since we don't support that
architecture - let's remove support for that toolchain and reduce
complexity and build time of tools.

Signed-off-by: Paweł Jasiak <pawel@jasiak.dev>
- build toolchain in container
- bump Debian version
- add ability to build & run Mimiker in local environment

Example how to build local env:
- git clone git@github.com:cahirwpz/mimiker.git
- cd mimiker
- podman build -t mimiker .
- podman container run -it --rm --hostname mimiker -v /home/user/mimiker:/root/mimiker mimiker /bin/bash
after last command you are in bash shell inside container, you can
install your favourite set of packages or just build Mimiker. All
changes are synchronized between local directory /home/user/mimiker and
/root/mimiker inside container, so you can use your favourite editor and
distro.

podman is not required but it's recommended (in non-priv mode). It's
possible to still run podman as root or use docker for that purpose but
then you are on your own with permissions inside mimiker directory.

Note: building container is *SLOW* and IO *INTENSIVE* process.

Signed-off-by: Paweł Jasiak <pawel@jasiak.dev>
@pj1031999 pj1031999 added the review please review this PR label Sep 12, 2021
@cahirwpz
Copy link
Copy Markdown
Owner

This looks ok. Please move PR's description into a separate document on our wiki entitled "toolchain" and modify it appropriately.

Signed-off-by: Paweł Jasiak <pawel@jasiak.dev>
@cahirwpz
Copy link
Copy Markdown
Owner

Since podman is available as a package for Debian 11 (but apparently not for Debian 10) I'll have to bump up Debian on our infrastructure before I merge this PR.

@cahirwpz
Copy link
Copy Markdown
Owner

@pj1031999 Since all our infrastructure was eventually updated to Debian 11 let's return to this PR. Could you resolve conflicts?

@pj1031999
Copy link
Copy Markdown
Collaborator Author

@cahirwpz please give me a couple of days.

@cahirwpz cahirwpz removed the review please review this PR label Jun 20, 2022
@cahirwpz
Copy link
Copy Markdown
Owner

@pj1031999 How can we benefit from that change having install-tools.sh script in place?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants