add oci/base/debian-slim/Dockerfile

This commit is contained in:
Haitao Pan 2023-03-09 23:12:38 +08:00
parent 0b7e25d2ef
commit 79cacb4f48
2 changed files with 33 additions and 0 deletions

View File

@ -5,6 +5,7 @@ on:
paths:
- '.github/workflows/base-images.yaml'
- 'oci/base/debian/Dockerfile'
- 'oci/base/debian-slim/Dockerfile'
- 'oci/base/alpine/Dockerfile'
- 'oci/base/alpine-glibc/Dockerfile'
- 'oci/base/alpine-awscli/Dockerfile'
@ -106,3 +107,21 @@ jobs:
tag: latest
cache: true
cache_registry: cache
debian-slim:
runs-on: ubuntu-latest
name: Build debian-slim base image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push alpine with custom ca image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/base/debian-slim'
build_file: 'Dockerfile'
image: public/debian-slim
tag: latest
cache: true
cache_registry: cache

View File

@ -0,0 +1,14 @@
FROM debian:buster-20200803-slim
RUN apt update && apt install ca-certificates curl -y
RUN cd /usr/local/share/ca-certificates/ && curl http://certinfo.roche.com/rootcerts/Roche%20Root%20CA%201.cer -o RocheRootCA1.cer && \
curl http://certinfo.roche.com/rootcerts/RocheEnterpriseCA1.cer -o RocheEnterpriseCA1.cer && \
curl http://certinfo.roche.com/rootcerts/RocheEnterpriseCA2.cer \
-o RocheEnterpriseCA2.cer && curl http://certinfo.roche.com/rootcerts/Roche%20Root%20CA%201%20-%20G2.crt \
-o RocheRootCA1-G2.crt && curl http://certinfo.roche.com/rootcerts/Roche%20Enterprise%20CA%201%20-%20G2.crt \
-o RocheEnterpriseCA1-G2.crt && curl http://certinfo.roche.com/rootcerts/Roche%20G3%20Root%20CA.crt \
-o RocheG3RootCA.crt && curl http://certinfo.roche.com/rootcerts/Roche%20G3%20Issuing%20CA%201.crt \
-o RocheG3IssuingCA1.crt && curl http://certinfo.roche.com/rootcerts/Roche%20G3%20Issuing%20CA%202.crt \
-o RocheG3IssuingCA2.crt && curl http://certinfo.roche.com/rootcerts/Roche%20G3%20Issuing%20CA%203.crt \
-o RocheG3IssuingCA3.crt && curl http://certinfo.roche.com/rootcerts/Roche%20G3%20Issuing%20CA%204.crt \
-o RocheG3IssuingCA4.crt && update-ca-certificates