2021-08-31 20:39:00 +00:00
|
|
|
FROM docker.io/library/archlinux:latest
|
2020-06-06 15:24:05 +00:00
|
|
|
|
2022-04-02 14:33:40 +00:00
|
|
|
ENV BUILD_USER=build
|
|
|
|
|
|
|
|
RUN pacman --sync --refresh --noconfirm --sysupgrade sudo
|
|
|
|
|
|
|
|
RUN echo "${BUILD_USER} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/${BUILD_USER} && \
|
|
|
|
useradd --create-home --home-dir /home/${BUILD_USER} --shell /bin/bash ${BUILD_USER}
|
|
|
|
USER ${BUILD_USER}
|
|
|
|
|
|
|
|
# execute local files
|
|
|
|
COPY installation-scripts /tmp/installation-scripts
|
|
|
|
RUN for f in {00-pacman-mirror.sh,01-rustup.sh}; do sudo /tmp/installation-scripts/$f; done && \
|
|
|
|
sudo rm --recursive --force /tmp/installation-scripts
|
|
|
|
ENV PATH="/home/${BUILD_USER}/.cargo/bin:/${BUILD_USER}/go/bin:${PATH}"
|
|
|
|
|
|
|
|
# Install PKGs from public repositories
|
|
|
|
RUN sudo pacman --sync --refresh --noconfirm --sysupgrade \
|
2021-08-31 20:39:00 +00:00
|
|
|
awk \
|
2022-04-02 14:33:40 +00:00
|
|
|
base-devel \
|
2021-08-31 20:39:00 +00:00
|
|
|
bash-completion \
|
|
|
|
docker \
|
|
|
|
gcc \
|
|
|
|
git \
|
2022-04-02 14:33:40 +00:00
|
|
|
gnupg \
|
2021-08-31 20:39:00 +00:00
|
|
|
go \
|
|
|
|
make \
|
2022-04-02 14:33:40 +00:00
|
|
|
pacman-contrib \
|
2021-08-31 20:39:00 +00:00
|
|
|
podman \
|
|
|
|
which \
|
|
|
|
zip
|
2020-08-02 12:06:07 +00:00
|
|
|
|
2022-04-02 14:33:40 +00:00
|
|
|
RUN sudo usermod --append --groups docker ${BUILD_USER}
|
2020-06-01 15:01:46 +00:00
|
|
|
|
2022-04-02 14:33:40 +00:00
|
|
|
# Install PKGs from private repositories
|
|
|
|
RUN sudo pacman --sync --refresh --noconfirm --sysupgrade \
|
2021-08-31 20:39:00 +00:00
|
|
|
oracle-instantclient-basic \
|
|
|
|
oracle-instantclient-jdbc \
|
|
|
|
oracle-instantclient-odbc \
|
|
|
|
oracle-instantclient-sdk \
|
|
|
|
oracle-instantclient-sqlplus \
|
|
|
|
oracle-instantclient-tools \
|
|
|
|
rpm-builder
|
2019-04-18 15:33:44 +00:00
|
|
|
|
2022-04-02 14:33:40 +00:00
|
|
|
WORKDIR /workspace
|
|
|
|
VOLUME [ "/workspace" ]
|
|
|
|
|
|
|
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
|
|
RUN sudo chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
|