add base/alpine-glibc/Dockerfile
This commit is contained in:
parent
50f0399953
commit
de6f828ddb
29
.github/workflows/alpine-glibc-image.yaml
vendored
Normal file
29
.github/workflows/alpine-glibc-image.yaml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Build & push apline image
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
paths:
|
||||
- '.github/workflows/alpine-glibc-image.yaml'
|
||||
- 'dockerfiles/base/alpine-glibc/Dockerfile'
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
base-image:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build alpine base image
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: 'Artifact: build && push alpine image'
|
||||
uses: aevea/action-kaniko@master
|
||||
with:
|
||||
registry: artifact.onwalk.net
|
||||
username: admin
|
||||
password: ${{ secrets.HELM_REPO_PASSWORD }}
|
||||
path: base/alpine-glibc/
|
||||
build_file: Dockerfile'
|
||||
image: k8s/alpine-glibc
|
||||
tag: latest
|
||||
cache: true
|
||||
cache_registry: cache
|
||||
24
base/alpine-glibc/Dockerfile
Normal file
24
base/alpine-glibc/Dockerfile
Normal file
@ -0,0 +1,24 @@
|
||||
FROM infracost/infracost:latest as builder
|
||||
|
||||
# Build IAC Runner
|
||||
FROM alpine:latest
|
||||
LABEL maintainer="Haitao Pan <manbuzhe2009@qq.com>"
|
||||
|
||||
ARG GLIBC_VERSION=2.34-r0
|
||||
|
||||
|
||||
# install glibc compatibility for alpine
|
||||
RUN apk add --update --no-cache curl binutils \
|
||||
&& curl -sL https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub \
|
||||
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk \
|
||||
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-bin-${GLIBC_VERSION}.apk \
|
||||
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-i18n-${GLIBC_VERSION}.apk \
|
||||
&& apk add --no-cache \
|
||||
glibc-${GLIBC_VERSION}.apk \
|
||||
glibc-bin-${GLIBC_VERSION}.apk \
|
||||
glibc-i18n-${GLIBC_VERSION}.apk \
|
||||
&& /usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8 \
|
||||
&& rm -rf glibc-*.apk \
|
||||
&& rm -rf /var/cache/apk/* \
|
||||
|
||||
ENTRYPOINT ["bash"]
|
||||
Loading…
Reference in New Issue
Block a user