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

feat: change to rockylinux as default image #15

Merged
merged 1 commit into from
Dec 16, 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
9 changes: 5 additions & 4 deletions Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
###################################### Image ######################################
ARG CENTOS_VERSION=8
ARG ROCKYLINUX_VERSION=8

## build Image
FROM centos:${CENTOS_VERSION}
FROM rockylinux/rockylinux:${ROCKYLINUX_VERSION}

# packages to install
RUN yum update -y && \
Expand All @@ -14,7 +14,8 @@ RUN yum update -y && \
vim \
git \
bash-completion \
glibc && \
glibc \
findutils && \
yum clean all

################################## Image Config ###################################
Expand Down Expand Up @@ -106,7 +107,7 @@ RUN if [ -n "${HELM_VERSION}" ] && [ "${HELM_VERSION}" != "latest" ]; then HELM=
cp helm/linux-amd64/helm /usr/local/bin/helm && chmod -R +x /usr/local/bin/helm && \
helm repo add stable https://charts.helm.sh/stable && helm repo update && \
helm completion bash > /etc/bash_completion.d/helm || :

## terraform
RUN if [ -n "${TERRAFORM_VERSION}" ] && [ "${TERRAFORM_VERSION}" != "latest" ]; then TERRAFORM="terraform-${TERRAFORM_VERSION}";fi && \
if [ "${TERRAFORM_VERSION}" == "latest" ]; then TERRAFORM="terraform";fi && \
Expand Down
6 changes: 3 additions & 3 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ vi .docker_build

### Image

| ARG | Required | Default |
| ---------------- | -------- | ------- |
| CENTOS_VERSION | no | 8 |
| ARG | Required | Default |
| ------------------ | -------- | ------- |
| ROCKYLINUX_VERSION | no | 8 |

### Image Config

Expand Down