-
Notifications
You must be signed in to change notification settings - Fork 27
Enable to select trixie distribution for docker image #661
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
Open
Seongook-CHOI-ML
wants to merge
2
commits into
miraclelinux:emlinux3
Choose a base branch
from
Seongook-CHOI-ML:emlinux3-docker-enable-to-select-trixie
base: emlinux3
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| FROM debian:trixie | ||
| ENV DEBIAN_FRONTEND noninteractive | ||
| ENV DEBCONF_NOWARNINGS yes | ||
|
|
||
| ARG uid | ||
| ARG http_proxy | ||
| ARG https_proxy | ||
| ARG no_proxy | ||
|
|
||
| RUN apt-get update --fix-missing && apt-get -y upgrade --fix-missing | ||
|
|
||
| RUN apt-get install --fix-missing -y \ | ||
| binfmt-support \ | ||
| bubblewrap \ | ||
| debootstrap \ | ||
| dosfstools \ | ||
| dpkg-dev \ | ||
| gettext-base \ | ||
| git \ | ||
| mtools \ | ||
| parted \ | ||
| python3 \ | ||
| quilt \ | ||
| qemu-system-x86 \ | ||
| qemu-system-arm \ | ||
| qemu-user-static \ | ||
| seabios \ | ||
| reprepro \ | ||
| sudo \ | ||
| git-buildpackage \ | ||
| pristine-tar \ | ||
| sbuild \ | ||
| schroot \ | ||
| zstd \ | ||
| python3-setuptools \ | ||
| python3-yaml \ | ||
| python3-html5lib \ | ||
| python3-pip \ | ||
| vim \ | ||
| screen \ | ||
| socat \ | ||
| patchelf \ | ||
| sqlite3 \ | ||
| umoci \ | ||
| skopeo \ | ||
| mmdebstrap \ | ||
| locales | ||
|
|
||
| RUN useradd -s /bin/bash -m build -u $uid | ||
| RUN gpasswd -a build sbuild | ||
| RUN echo "build ALL=(ALL) NOPASSWD: ALL" | tee -a /etc/sudoers | ||
| RUN echo "Defaults env_keep += \" http_proxy https_proxy no_proxy\"" | tee -a /etc/sudoers | ||
|
|
||
| # Fix error "Please use a locale setting which supports utf-8." | ||
| # See https://wiki.yoctoproject.org/wiki/TipsAndTricks/ResolvingLocaleIssues | ||
| RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ | ||
| echo 'LANG="en_US.UTF-8"'>/etc/default/locale && \ | ||
| dpkg-reconfigure --frontend=noninteractive locales 2>/dev/null && \ | ||
| update-locale LANG=en_US.UTF-8 | ||
|
|
||
| ENV LC_ALL en_US.UTF-8 | ||
| ENV LANG en_US.UTF-8 | ||
| ENV LANGUAGE en_US.UTF-8 | ||
|
|
||
| ADD gitproxy /usr/bin | ||
| RUN chmod +x /usr/bin/gitproxy | ||
|
|
||
| USER build | ||
| WORKDIR /home/build | ||
|
|
||
| RUN bash -c 'if test -n "$http_proxy"; then git config --global http.proxy "$http_proxy"; \ | ||
| git config --global core.gitproxy "/usr/bin/gitproxy"; fi' | ||
| RUN bash -c 'if test -n "$https_proxy"; then git config --global https.proxy "$https_proxy"; fi' | ||
| RUN bash -c 'if test -n "$no_proxy"; then git config --global core.noproxy "$no_proxy"; fi' | ||
|
|
||
| RUN pip install --user 'cyclonedx-python-lib>=7.3.2,<=7.5.1' --break-system-packages --no-warn-script-location | ||
| RUN pip install --user jsonschema==4.21.1 --break-system-packages --no-warn-script-location | ||
| RUN pip install --user spdx-tools==0.8.2 --break-system-packages --no-warn-script-location | ||
| RUN pip install --user looseversion==1.3.0 --break-system-packages --no-warn-script-location | ||
|
|
||
| RUN mkdir work | ||
| WORKDIR /home/build/work |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,42 @@ | ||
| version: '3.8' | ||
|
|
||
| x-build-args: &build-args | ||
| context: . | ||
| args: | ||
| uid: $host_user_id | ||
| http_proxy: $http_proxy | ||
| https_proxy: $https_proxy | ||
| ftp_proxy: $ftp_proxy | ||
| no_proxy: $no_proxy | ||
|
|
||
| x-base-config: &base-config | ||
| environment: | ||
| - http_proxy=$http_proxy | ||
| - https_proxy=$https_proxy | ||
| - ftp_proxy=$ftp_proxy | ||
| - no_proxy=$no_proxy | ||
| volumes: | ||
| - /dev/shm:/dev/shm:rw | ||
| - ../../../:/home/build/work:rw | ||
| devices: | ||
| - /dev/net/tun:/dev/net/tun | ||
| privileged: true | ||
| cap_add: | ||
| - NET_ADMIN | ||
| user: build | ||
| command: /bin/sh -c "sudo mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc && /bin/bash" | ||
|
|
||
| services: | ||
| emlinux3-build: | ||
| <<: *base-config | ||
| image: "emlinux3-build-${host_user_name}" | ||
| build: | ||
| context: . | ||
| <<: *build-args | ||
| dockerfile: Dockerfile | ||
| args: | ||
| uid: $host_user_id | ||
| http_proxy: $http_proxy | ||
| https_proxy: $https_proxy | ||
| ftp_proxy: $ftp_proxy | ||
| no_proxy: $no_proxy | ||
| environment: | ||
| - http_proxy=$http_proxy | ||
| - https_proxy=$https_proxy | ||
| - ftp_proxy=$ftp_proxy | ||
| - no_proxy=$no_proxy | ||
| volumes: | ||
| - /dev/shm:/dev/shm:rw | ||
| - ../../../:/home/build/work:rw | ||
| devices: | ||
| - /dev/net/tun:/dev/net/tun | ||
| privileged: true | ||
| cap_add: | ||
| - NET_ADMIN | ||
| user: build | ||
| command: /bin/sh -c "sudo mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc && /bin/bash" | ||
|
|
||
| emlinux3-build-trixie: | ||
| <<: *base-config | ||
| image: "emlinux3-build-trixie-${host_user_name}" | ||
| build: | ||
| <<: *build-args | ||
| dockerfile: Dockerfile.trixie | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both service have lots of common setting, so please make common setting section using anchors .
e.g.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added new commit for your comment.