Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Containers: update environment #1167

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

pj1031999
Copy link
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 [email protected]: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 <[email protected]>
- build toolchain in container
- bump Debian version
- add ability to build & run Mimiker in local environment

Example how to build local env:
- git clone [email protected]: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 <[email protected]>
@pj1031999 pj1031999 added the review please review this PR label Sep 12, 2021
@cahirwpz
Copy link
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 <[email protected]>
@cahirwpz
Copy link
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
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
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
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