Skip to content

Commit

Permalink
Restore man target directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dometto committed Nov 7, 2023
1 parent a61796c commit 4fb8eab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ubuntu/src-ubuntu.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,6 @@ build {
])
}

provisioner "shell" {
inline = ["useradd -m -s $(which bash) -p $(openssl passwd -1 ${var.testuser.password}) ${var.testuser.username}"]
}

provisioner "ansible" {
playbook_file = "./plugin-co/plugin-co.yml"
extra_arguments = concat(var.common_ansible_args, [
Expand All @@ -192,7 +188,11 @@ build {
# The autoremove command run below removes recommended and suggested packages installed by 'apt installs' executed by the components executed above.
# This makes for a smaller image (~260MB), but it may result in errors if further components implicitly rely on those recommended packages.
provisioner "shell" {
inline = ["apt-get autoremove -y -o APT::Autoremove::RecommendsImportant=0 -o APT::Autoremove::SuggestsImportant=0 && apt-get autoclean -y && apt-get clean -y", "rm -rf /tmp/* /var/tmp* /usr/share/doc/* /root/.ansible* /usr/share/man/* /root/.cache /etc/rsc/plugins/*"]
inline = [
"useradd -m -s $(which bash) -p $(openssl passwd -1 ${var.testuser.password}) ${var.testuser.username}",
"apt-get autoremove -y -o APT::Autoremove::RecommendsImportant=0 -o APT::Autoremove::SuggestsImportant=0 && apt-get autoclean -y && apt-get clean -y", "rm -rf /tmp/* /var/tmp* /usr/share/doc/* /root/.ansible* /usr/share/man/* /root/.cache /etc/rsc/plugins/*",
"mkdir -p /usr/share/man/man1" # The step aboved removed all the man pages content, but this directory needs to be present as an install target for subsequent apt installs by components.
]
}

post-processor "docker-tag" {
Expand Down

0 comments on commit 4fb8eab

Please sign in to comment.