Skip to content

Commit

Permalink
Added a new 'generate' option to auto-generate (update) the Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
TGWolf committed May 24, 2021
1 parent c949f22 commit 25d76e5
Show file tree
Hide file tree
Showing 73 changed files with 270 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/ab-results*
Dockerfile.bak
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@ All notable changes to this project will be documented in this file.

This changelog was automatically generated using [Caretaker](https://github.com/DevelopersToolbox/caretaker) by [Wolf Software](https://github.com/WolfSoftware)

### [Unreleased](https://github.com/DockerToolbox/goenv/compare/v0.1.0...HEAD)
### [v0.1.1](https://github.com/DockerToolbox/goenv/compare/v0.1.0...v0.1.1)

- Update pinned packages [`[head]`](https://github.com/DockerToolbox/goenv/commit/)
> Released on May, 24th 2021
- Added a new 'generate' option to auto-generate (update) the Dockerfiles [`[head]`](https://github.com/DockerToolbox/goenv/commit/)

- Update pinned packages [`[c949f22]`](https://github.com/DockerToolbox/goenv/commit/c949f22ab527350cf91033e64325c11b1416b8c5)

- Fix travis rvm versions and slack integration [`[a987387]`](https://github.com/DockerToolbox/goenv/commit/a987387d86fe6c13b9311a3fba9f8a235234e6fd)

### [v0.1.0](https://github.com/DockerToolbox/goenv/releases/v0.1.0)

> Released on February, 19th 2021
- The initial commit [`[63bdd44]`](https://github.com/DockerToolbox/goenv/commit/63bdd447ef11b36777bb0f395024ddb8cf593625)

2 changes: 1 addition & 1 deletion Dockerfiles/alpine/manage-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

while IFS= read -r -d '' script; do
$script "${1}" "${2}"
done < <(find . -name manage.sh -print0 | sort -zV)
done < <(find . -name manage.sh -print0 | sort -zVd)

6 changes: 4 additions & 2 deletions Dockerfiles/amazonlinux/1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ RUN yum makecache && \
yum install -y \
ca-certificates-2018.2.22 \
curl-7.61.1 \
git-2.18.4 \
tar-1.26 \
git-2.18.5 \
tar-1.26 \
yum-plugin-remove-with-leaves-1.1.31 \
&& \
git clone https://github.com/syndbg/goenv.git ~/.goenv && \
echo 'export GOENV_ROOT=${HOME}/.goenv' >> ~/.bashrc && \
Expand All @@ -21,3 +22,4 @@ RUN yum makecache && \
WORKDIR /root

ENTRYPOINT ["/bin/bash"]

3 changes: 3 additions & 0 deletions Dockerfiles/amazonlinux/1/Templates/cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
yum autoremove -y && \
yum clean all && \
rm -rf /var/cache/yum
3 changes: 3 additions & 0 deletions Dockerfiles/amazonlinux/1/Templates/entrypoint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WORKDIR /root

ENTRYPOINT ["/bin/bash"]
1 change: 1 addition & 0 deletions Dockerfiles/amazonlinux/1/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/amazonlinux/1/Templates/lint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# hadolint ignore=SC2016
6 changes: 4 additions & 2 deletions Dockerfiles/amazonlinux/2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ RUN yum makecache && \
yum install -y \
ca-certificates-2019.2.32 \
curl-7.61.1 \
git-2.23.3 \
tar-1.26 \
git-2.23.4 \
tar-1.26 \
yum-plugin-remove-with-leaves-1.1.31 \
&& \
git clone https://github.com/syndbg/goenv.git ~/.goenv && \
echo 'export GOENV_ROOT=${HOME}/.goenv' >> ~/.bashrc && \
Expand All @@ -21,3 +22,4 @@ RUN yum makecache && \
WORKDIR /root

ENTRYPOINT ["/bin/bash"]

3 changes: 3 additions & 0 deletions Dockerfiles/amazonlinux/2/Templates/cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
yum autoremove -y && \
yum clean all && \
rm -rf /var/cache/yum
3 changes: 3 additions & 0 deletions Dockerfiles/amazonlinux/2/Templates/entrypoint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WORKDIR /root

ENTRYPOINT ["/bin/bash"]
1 change: 1 addition & 0 deletions Dockerfiles/amazonlinux/2/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/amazonlinux/2/Templates/lint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# hadolint ignore=SC2016
2 changes: 1 addition & 1 deletion Dockerfiles/amazonlinux/manage-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

while IFS= read -r -d '' script; do
$script "${1}" "${2}"
done < <(find . -name manage.sh -print0 | sort -zV)
done < <(find . -name manage.sh -print0 | sort -zVd)

3 changes: 2 additions & 1 deletion Dockerfiles/centos/7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN yum makecache && \
ca-certificates-2020.2.41 \
curl-7.29.0 \
git-1.8.3.1 \
tar-1.26 \
tar-1.26 \
yum-plugin-remove-with-leaves-1.1.31 \
&& \
git clone https://github.com/syndbg/goenv.git ~/.goenv && \
Expand All @@ -24,3 +24,4 @@ RUN yum makecache && \
WORKDIR /root

ENTRYPOINT ["/bin/bash"]

5 changes: 5 additions & 0 deletions Dockerfiles/centos/7/Templates/cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
yum remove -y --remove-leaves \
git \
&& \
yum clean all && \
rm -rf /var/cache/yum
3 changes: 3 additions & 0 deletions Dockerfiles/centos/7/Templates/entrypoint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WORKDIR /root

ENTRYPOINT ["/bin/bash"]
1 change: 1 addition & 0 deletions Dockerfiles/centos/7/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/centos/7/Templates/lint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# hadolint ignore=SC2016
6 changes: 6 additions & 0 deletions Dockerfiles/centos/8/Templates/cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
yum remove -y \
git \
&& \
yum autoremove && \
yum clean all && \
rm -rf /var/cache/yum
3 changes: 3 additions & 0 deletions Dockerfiles/centos/8/Templates/entrypoint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WORKDIR /root

ENTRYPOINT ["/bin/bash"]
1 change: 1 addition & 0 deletions Dockerfiles/centos/8/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/centos/8/Templates/lint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# hadolint ignore=SC2016
2 changes: 1 addition & 1 deletion Dockerfiles/centos/manage-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

while IFS= read -r -d '' script; do
$script "${1}" "${2}"
done < <(find . -name manage.sh -print0 | sort -zV)
done < <(find . -name manage.sh -print0 | sort -zVd)

5 changes: 5 additions & 0 deletions Dockerfiles/debian/10-slim/Templates/cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apt-get -y remove --purge \
git \
&& \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions Dockerfiles/debian/10-slim/Templates/entrypoint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WORKDIR /root

ENTRYPOINT ["/bin/bash"]
1 change: 1 addition & 0 deletions Dockerfiles/debian/10-slim/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/debian/10-slim/Templates/lint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# hadolint ignore=SC2016
5 changes: 5 additions & 0 deletions Dockerfiles/debian/10/Templates/cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apt-get -y remove --purge \
git \
&& \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions Dockerfiles/debian/10/Templates/entrypoint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WORKDIR /root

ENTRYPOINT ["/bin/bash"]
1 change: 1 addition & 0 deletions Dockerfiles/debian/10/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/debian/10/Templates/lint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# hadolint ignore=SC2016
1 change: 1 addition & 0 deletions Dockerfiles/debian/11-slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ RUN apt-get update && \
WORKDIR /root

ENTRYPOINT ["/bin/bash"]

5 changes: 5 additions & 0 deletions Dockerfiles/debian/11-slim/Templates/cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apt-get -y remove --purge \
git \
&& \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions Dockerfiles/debian/11-slim/Templates/entrypoint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WORKDIR /root

ENTRYPOINT ["/bin/bash"]
1 change: 1 addition & 0 deletions Dockerfiles/debian/11-slim/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/debian/11-slim/Templates/lint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# hadolint ignore=SC2016
5 changes: 5 additions & 0 deletions Dockerfiles/debian/11/Templates/cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apt-get -y remove --purge \
git \
&& \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions Dockerfiles/debian/11/Templates/entrypoint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WORKDIR /root

ENTRYPOINT ["/bin/bash"]
1 change: 1 addition & 0 deletions Dockerfiles/debian/11/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/debian/11/Templates/lint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# hadolint ignore=SC2016
5 changes: 5 additions & 0 deletions Dockerfiles/debian/9-slim/Templates/cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apt-get -y remove --purge \
git \
&& \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions Dockerfiles/debian/9-slim/Templates/entrypoint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WORKDIR /root

ENTRYPOINT ["/bin/bash"]
1 change: 1 addition & 0 deletions Dockerfiles/debian/9-slim/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/debian/9-slim/Templates/lint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# hadolint ignore=SC2016
5 changes: 5 additions & 0 deletions Dockerfiles/debian/9/Templates/cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apt-get -y remove --purge \
git \
&& \
apt-get -y autoremove && \
rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions Dockerfiles/debian/9/Templates/entrypoint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WORKDIR /root

ENTRYPOINT ["/bin/bash"]
1 change: 1 addition & 0 deletions Dockerfiles/debian/9/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/debian/9/Templates/lint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# hadolint ignore=SC2016
2 changes: 1 addition & 1 deletion Dockerfiles/debian/manage-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

while IFS= read -r -d '' script; do
$script "${1}" "${2}"
done < <(find . -name manage.sh -print0 | sort -zV)
done < <(find . -name manage.sh -print0 | sort -zVd)

2 changes: 1 addition & 1 deletion Dockerfiles/manage-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

while IFS= read -r -d '' script; do
$script "${1}" "${2}"
done < <(find . -name manage.sh -print0 | sort -zV)
done < <(find . -name manage.sh -print0 | sort -zVd)

1 change: 1 addition & 0 deletions Dockerfiles/ubuntu/16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ RUN apt-get update && \
WORKDIR /root

ENTRYPOINT ["/bin/bash"]

5 changes: 5 additions & 0 deletions Dockerfiles/ubuntu/16.04/Templates/cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apt-get -y remove --purge \
git \
&& \
apt-get -y auto-remove && \
rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions Dockerfiles/ubuntu/16.04/Templates/entrypoint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WORKDIR /root

ENTRYPOINT ["/bin/bash"]
1 change: 1 addition & 0 deletions Dockerfiles/ubuntu/16.04/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/ubuntu/16.04/Templates/lint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# hadolint ignore=SC2016
1 change: 1 addition & 0 deletions Dockerfiles/ubuntu/18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ RUN apt-get update && \
WORKDIR /root

ENTRYPOINT ["/bin/bash"]

5 changes: 5 additions & 0 deletions Dockerfiles/ubuntu/18.04/Templates/cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apt-get -y remove --purge \
git \
&& \
apt-get -y auto-remove && \
rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions Dockerfiles/ubuntu/18.04/Templates/entrypoint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WORKDIR /root

ENTRYPOINT ["/bin/bash"]
1 change: 1 addition & 0 deletions Dockerfiles/ubuntu/18.04/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/ubuntu/18.04/Templates/lint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# hadolint ignore=SC2016
1 change: 1 addition & 0 deletions Dockerfiles/ubuntu/20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ RUN apt-get update && \
WORKDIR /root

ENTRYPOINT ["/bin/bash"]

5 changes: 5 additions & 0 deletions Dockerfiles/ubuntu/20.04/Templates/cleanup.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apt-get -y remove --purge \
git \
&& \
apt-get -y auto-remove && \
rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions Dockerfiles/ubuntu/20.04/Templates/entrypoint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
WORKDIR /root

ENTRYPOINT ["/bin/bash"]
1 change: 1 addition & 0 deletions Dockerfiles/ubuntu/20.04/Templates/install.tpl
1 change: 1 addition & 0 deletions Dockerfiles/ubuntu/20.04/Templates/lint.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# hadolint ignore=SC2016
2 changes: 1 addition & 1 deletion Dockerfiles/ubuntu/manage-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

while IFS= read -r -d '' script; do
$script "${1}" "${2}"
done < <(find . -name manage.sh -print0 | sort -zV)
done < <(find . -name manage.sh -print0 | sort -zVd)

6 changes: 6 additions & 0 deletions Scripts/install.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
git clone https://github.com/syndbg/goenv.git ~/.goenv && \
echo 'export GOENV_ROOT=${HOME}/.goenv' >> ~/.bashrc && \
echo 'export PATH=${GOENV_ROOT}/bin:${PATH}' >> ~/.bashrc && \
echo 'eval "$(goenv init -)"' >> ~/.bashrc && \
echo 'export PATH=${GOROOT}/bin:${PATH}' >> ~/.bashrc && \
echo 'export PATH=${GOPATH}/bin:${PATH}' >> ~/.bashrc && \
Loading

0 comments on commit 25d76e5

Please sign in to comment.