-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
[WIP] Hadolint recommendations #41
Open
TokisanGames
wants to merge
3
commits into
godotengine:main
Choose a base branch
from
TokisanGames:hadolint
base: main
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
3 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 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,11 +1,12 @@ | ||
FROM i386/ubuntu:trusty | ||
|
||
ARG mono_version | ||
ARG mono_commit | ||
|
||
RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mandatory!\n\n"; exit 1; fi && \ | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
||
RUN if [ -z "${mono_version}" ]; then printf "\n\nArgument mono_version is mandatory!\n\n"; exit 1; fi && \ | ||
apt-get update && \ | ||
apt-get -y install wget && \ | ||
apt-get -y install wget --no-install-recommends && \ | ||
cd /root && \ | ||
wget -O- 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x1E9377A2BA9EF27F' | apt-key add - && \ | ||
wget -O- 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8E51A6D660CD88D67D65221D90BD7EACED8E640A' | apt-key add - && \ | ||
|
@@ -14,35 +15,31 @@ RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mand | |
apt-get -y update && \ | ||
apt-get -y install --no-install-recommends \ | ||
autoconf automake bzip2 cmake curl gettext git libtool make perl scons xz-utils \ | ||
gcc-8 g++-8 libudev-dev libx11-dev libxcursor-dev libxrandr-dev libasound2-dev libpulse-dev \ | ||
gcc-9 g++-9 libudev-dev libx11-dev libxcursor-dev libxrandr-dev libasound2-dev libpulse-dev \ | ||
libgl1-mesa-dev libglu1-mesa-dev libxi-dev libxinerama-dev yasm && \ | ||
ln -sf /usr/bin/gcc-ranlib-8 /usr/bin/gcc-ranlib && \ | ||
ln -sf /usr/bin/gcc-ar-8 /usr/bin/gcc-ar && \ | ||
ln -sf /usr/bin/gcc-8 /usr/bin/gcc && \ | ||
ln -sf /usr/bin/g++-8 /usr/bin/g++ | ||
ln -sf /usr/bin/gcc-ranlib-9 /usr/bin/gcc-ranlib && \ | ||
ln -sf /usr/bin/gcc-ar-9 /usr/bin/gcc-ar && \ | ||
ln -sf /usr/bin/gcc-9 /usr/bin/gcc && \ | ||
ln -sf /usr/bin/g++-9 /usr/bin/g++ && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/ | ||
|
||
RUN cd /root && \ | ||
git clone https://github.com/mono/mono --branch ${mono_version} --single-branch && \ | ||
cd /root/mono && \ | ||
if [ ! -z "${mono_commit}" ]; then git checkout ${mono_commit}; fi && \ | ||
git submodule update --init && \ | ||
git apply -3 /root/files/patches/mono-unity-Clear-TLS-instead-of-aborting.patch && \ | ||
RUN cp -a /root/files/${mono_version} /root && \ | ||
cd /root/${mono_version} && \ | ||
NOCONFIGURE=1 ./autogen.sh && \ | ||
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib/mono --disable-boehm --host=i386-linux-gnu && \ | ||
make -j && \ | ||
make install && \ | ||
cd /root && \ | ||
rm -rf /root/${mono_version} && \ | ||
cert-sync /etc/ssl/certs/ca-certificates.crt && \ | ||
rm -rf /root/mono && \ | ||
wget https://download.mono-project.com/repo/ubuntu/pool/main/m/msbuild/msbuild_16.3+xamarinxplat.2019.08.08.00.55-0xamarin2+ubuntu1604b1_all.deb && \ | ||
wget https://download.mono-project.com/repo/ubuntu/pool/main/c/core-setup/msbuild-libhostfxr_3.0.0.2019.04.16.02.13-0xamarin3+ubuntu1604b1_i386.deb && \ | ||
wget https://download.mono-project.com/repo/ubuntu/pool/main/m/msbuild/msbuild-sdkresolver_16.3+xamarinxplat.2019.08.08.00.55-0xamarin2+ubuntu1604b1_all.deb && \ | ||
wget https://download.mono-project.com/repo/ubuntu/pool/main/n/nuget/nuget_5.2.0.6090.bin-0xamarin1+ubuntu1604b1_all.deb && \ | ||
dpkg -i --force-all *.deb && \ | ||
dpkg -i --force-all ./*.deb && \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. avoid files that begin with |
||
sed -i '/Depends.*mono/d' /var/lib/dpkg/status && \ | ||
ln -s /usr/bin/mono /usr/bin/cli && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/ && \ | ||
rm *.deb | ||
rm -f ./*.deb | ||
|
||
CMD /bin/bash | ||
CMD ["/bin/bash"] |
This file contains 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
Oops, something went wrong.
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.
script stops if either side of a pipe fail