2222# This specifies the versions that were used for upgrade.
2323#
2424# Arguments:
25- # - before: The version to do upgrade FROM. Default: "1.10.14 "
25+ # - before: The version to do upgrade FROM. Default: "7.34.0 "
2626
2727FROM rockylinux/rockylinux:8
2828
@@ -34,15 +34,11 @@ RUN dnf update -y \
3434 && dnf install -y wget git \
3535 && dnf clean all
3636
37- ARG before=1.10.14
37+ ARG before=7.34.0
3838LABEL before=${before}
3939
40- # Install proper FROM repo: puppet 6 or puppet 7.
41- RUN if [[ ${before} == 6.* ]]; then \
42- echo Installing puppet6 repo; \
43- wget -O puppet6.rpm http://yum.puppet.com/puppet6-release-el-8.noarch.rpm && \
44- rpm -i puppet6.rpm; \
45- elif [[ ${before} == 7.* ]]; then \
40+ # Install proper FROM repo pupet 7
41+ RUN if [[ ${before} == 7.* ]]; then \
4642 echo Installing puppet7 repo; \
4743 wget -O puppet7.rpm http://yum.puppet.com/puppet7-release-el-8.noarch.rpm && \
4844 rpm -i puppet7.rpm; \
@@ -67,13 +63,14 @@ COPY metadata.json ./
6763RUN /opt/puppetlabs/puppet/bin/puppet module install --modulepath $module_path --target-dir .. puppetlabs-stdlib
6864RUN /opt/puppetlabs/puppet/bin/puppet module install --modulepath $module_path --target-dir .. puppetlabs-inifile
6965RUN /opt/puppetlabs/puppet/bin/puppet module install --modulepath $module_path --target-dir .. puppetlabs-apt
66+ RUN /opt/puppetlabs/puppet/bin/puppet module install --modulepath $module_path --target-dir .. puppetlabs-facts
7067
7168# Installing dependencies from source. These versions should be within the range
72- # of `dependencies` in metadata.json. `translate` is a dependency for inifile.
73- # RUN git clone https://github.com/puppetlabs/puppetlabs-stdlib ../stdlib --branch 5.2 .0
74- # RUN git clone https://github.com/puppetlabs/puppetlabs-inifile ../inifile --branch 2.5 .0
75- # RUN git clone https://github.com/puppetlabs/puppetlabs-translate ../translate --branch 1.2.0
76- # RUN git clone https://github.com/puppetlabs/puppetlabs-apt ../apt --branch 6.3 .0
69+ # of `dependencies` in metadata.json.
70+ # RUN git clone https://github.com/puppetlabs/puppetlabs-stdlib ../stdlib --branch 9.7 .0
71+ # RUN git clone https://github.com/puppetlabs/puppetlabs-inifile ../inifile --branch 6.2 .0
72+ # RUN git clone https://github.com/puppetlabs/puppetlabs-apt ../apt --branch 10.0.1
73+ # RUN git clone https://github.com/puppetlabs/puppetlabs-facts ../facts --branch 1.7 .0
7774
7875# Check that all dependencies are installed.
7976RUN /opt/puppetlabs/puppet/bin/puppet module --modulepath $module_path list --tree
0 commit comments