-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from betadots/update_build
Update build_container.yml and Dockerfile
- Loading branch information
Showing
5 changed files
with
79 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
FROM ubuntu:22.04 | ||
ARG UBUNTU_CODENAME=jammy | ||
|
||
FROM ubuntu:${UBUNTU_CODENAME} | ||
|
||
LABEL org.label-schema.maintainer="betadots GmbH <[email protected]>" \ | ||
org.label-schema.vendor="betadots" \ | ||
|
@@ -10,11 +12,30 @@ LABEL org.label-schema.maintainer="betadots GmbH <[email protected]>" \ | |
org.label-schema.dockerfile="/Dockerfile" | ||
|
||
ARG TARGETARCH | ||
|
||
# needs to be set again, otherwise it is not available in the next stage | ||
ARG UBUNTU_CODENAME | ||
|
||
ARG PUPPET_RELEASE | ||
ENV PUPPET_RELEASE=${PUPPET_RELEASE:-7} | ||
|
||
ARG PUPPET_VERSION | ||
ENV PUPPET_VERSION=${PUPPET_VERSION:-7} | ||
ENV PUPPET_VERSION=${PUPPET_VERSION:-7.27.0} | ||
|
||
ARG TERRAFORM_VERSION | ||
ENV TERRAFORM_VERSION=${TERRAFORM_VERSION:-1.6.2} | ||
|
||
ARG PDK_VERSION | ||
ENV PDK_VERSION=${PDK_VERSION:-3.0.0.0} | ||
|
||
ARG BOLT_VERSION | ||
ENV BOLT_VERSION=${BOLT_VERSION:-3.27.4} | ||
|
||
ARG PUPPETDB_TERMINI_VERSION | ||
ENV PUPPETDB_TERMINI_VERSION=${PUPPETDB_TERMINI_VERSION:-7.15.0} | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV PUPPET_DEB=puppet${PUPPET_VERSION}-release-jammy.deb | ||
ENV PUPPET_DEB=puppet${PUPPET_RELEASE}-release-${UBUNTU_CODENAME}.deb | ||
|
||
ADD https://apt.puppet.com/${PUPPET_DEB} /${PUPPET_DEB} | ||
|
||
|
@@ -37,11 +58,11 @@ RUN apt update && apt install -y --no-install-recommends \ | |
make \ | ||
openssh-client \ | ||
openssl \ | ||
pdk \ | ||
pdk=${PDK_VERSION}-1${UBUNTU_CODENAME} \ | ||
pkg-config\ | ||
puppet-agent \ | ||
puppet-bolt \ | ||
puppetdb-termini \ | ||
puppet-agent=${PUPPET_VERSION}-1${UBUNTU_CODENAME} \ | ||
puppet-bolt=${BOLT_VERSION}-1${UBUNTU_CODENAME} \ | ||
puppetdb-termini=${PUPPETDB_TERMINI_VERSION}-1${UBUNTU_CODENAME} \ | ||
python3-yaml \ | ||
unzip \ | ||
wget \ | ||
|
@@ -54,12 +75,12 @@ RUN apt update && apt install -y --no-install-recommends \ | |
&& locale-gen en_US.UTF-8 | ||
# && /opt/puppetlabs/puppet/bin/bundle install | ||
|
||
ADD https://releases.hashicorp.com/terraform/1.6.2/terraform_1.6.2_linux_${TARGETARCH}.zip /terraform_1.6.2_linux_${TARGETARCH}.zip | ||
ADD https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_${TARGETARCH}.zip /terraform_${TERRAFORM_VERSION}_linux_${TARGETARCH}.zip | ||
RUN \ | ||
unzip terraform_1.6.2_linux_${TARGETARCH}.zip && \ | ||
unzip terraform_${TERRAFORM_VERSION}_linux_${TARGETARCH}.zip && \ | ||
mv terraform /usr/local/bin/terraform && \ | ||
chmod +x /usr/local/bin/terraform && \ | ||
rm terraform_1.6.2_linux_${TARGETARCH}.zip && \ | ||
rm terraform_${TERRAFORM_VERSION}_linux_${TARGETARCH}.zip && \ | ||
terraform --version | ||
|
||
ENV BOLT_DISABLE_ANALYTICS=true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
# Puppet Development Container | ||
|
||
includes: | ||
|
||
- bolt 3.27.2 | ||
- Puppet 7.26.0 | ||
- catalog_diff | ||
- PDK 3.0.0 | ||
- Puppetdb-termini 7.14.0 | ||
- yamllint | ||
- terraform 1.6.2 | ||
included fixed software see: [build_versions.json](build_versions.json) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"include": [ | ||
{ | ||
"puppet_release": 7, | ||
"puppet_version": "7.27.0", | ||
"puppetdb_termini_version": "7.15.0", | ||
"terraform_version": "1.6.2", | ||
"pdk_version": "3.0.0.0", | ||
"bolt_version": "3.27.4" | ||
}, | ||
{ | ||
"puppet_release": 8, | ||
"puppet_version": "8.3.1", | ||
"puppetdb_termini_version": "8.2.0", | ||
"terraform_version": "1.6.2", | ||
"pdk_version": "3.0.0.0", | ||
"bolt_version": "3.27.4" | ||
} | ||
] | ||
} |