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

Remove expired Let's Encrypt root certificate from Mono containers #3457

Merged
merged 2 commits into from
Sep 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ jobs:
run: ./build --configuration=${{ matrix.configuration}}
- name: Run tests
run: xvfb-run ./build test+only --configuration=${{ matrix.configuration }} --where="Category!=FlakyNetwork"
- name: Run inflator container smoke test
run: |
cd _build
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
docker build --tag inflator --file ../Dockerfile.netkan .
docker run --rm --name inflator --entrypoint /bin/bash inflator -c "
curl -O https://raw.githubusercontent.com/KSP-CKAN/NetKAN/master/NetKAN/ZeroMiniAVC.netkan && \
mono netkan.exe ZeroMiniAVC.netkan
HebaruSan marked this conversation as resolved.
Show resolved Hide resolved
"
if: matrix.configuration == 'release' && ( matrix.mono == '6.8' || matrix.mono == 'latest' )

- name: Upload ckan.exe artifact
uses: actions/upload-artifact@v2
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.metadata
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM mono:latest

RUN /bin/sed -i 's/^mozilla\/DST_Root_CA_X3.crt$/!mozilla\/DST_Root_CA_X3.crt/' /etc/ca-certificates.conf && \
/usr/sbin/update-ca-certificates
RUN apt-get update && \
apt-get install -y --no-install-recommends python3 python3-pip python3-setuptools git build-essential python3-dev && \
apt-get clean
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.netkan
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM mono:latest
RUN /bin/sed -i 's/^mozilla\/DST_Root_CA_X3.crt$/!mozilla\/DST_Root_CA_X3.crt/' /etc/ca-certificates.conf && \
/usr/sbin/update-ca-certificates
RUN useradd -ms /bin/bash netkan
USER netkan
WORKDIR /home/netkan
Expand Down