build base images

This commit is contained in:
Jamil Bou Kheir
2021-07-14 10:29:51 +00:00
parent 25d3525541
commit 6c65cfb785
4 changed files with 34 additions and 9 deletions

17
.github/workflows/build_base_images.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Build base images
on:
schedule:
- cron: '0 0 * * *'
jobs:
build-and-push:
runs-on: ubuntu-20.04
steps:
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: action/checkout@v2
- run: scripts/build_and_push_base_images.sh

View File

@@ -173,14 +173,15 @@ jobs:
strategy:
matrix:
os:
# - amazonlinux_2
- amazonlinux_2
- debian_10
- ubuntu_18.04
- ubuntu_20.04
# - redhat_7
# - redhat_8
# - centos_7
# - centos_8
- centos_7
- centos_8
- fedora_33
- fedora_34
- fedora_35
include:
- arch: amd64
# - arch: arm64

View File

@@ -35,6 +35,7 @@ ENV LC_ALL en_US.UTF-8
RUN git clone --depth 1 https://github.com/asdf-vm/asdf.git $HOME/.asdf
ENV PATH="/root/.asdf/bin:/root/.asdf/shims:${PATH}"
RUN echo 'PATH="/root/.asdf/bin:/root/.asdf/shims:${PATH}"' >> /etc/environment
COPY .tool-versions .tool-versions
RUN asdf plugin-add nodejs
RUN asdf plugin-add erlang

View File

@@ -15,17 +15,23 @@ RUN yum install -y \
ncurses-devel \
curl \
git \
glibc-common \
glibc-locale-source \
glibc-langpack-en \
findutils \
unzip \
glibc-all-langpacks \
rpmdevtools \
rpmlint
ENV SHELL /bin/zsh
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
# Restore missing locales from base image
RUN yum reinstall glibc-common -y && \
# localedef -i en_US -f UTF-8 en_US.UTF-8 && \
echo "LANG=en_US.UTF-8" > /etc/locale.conf
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN git clone --depth 1 https://github.com/asdf-vm/asdf.git $HOME/.asdf
ENV PATH="/root/.asdf/bin:/root/.asdf/shims:${PATH}"
RUN echo 'PATH="/root/.asdf/bin:/root/.asdf/shims:${PATH}"' >> /etc/environment
COPY .tool-versions .tool-versions
RUN asdf plugin-add nodejs
RUN asdf plugin-add erlang