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

Add docker installation to the default ubuntu config #87

Merged
merged 4 commits into from
Oct 17, 2022

Conversation

daxmc99
Copy link
Contributor

@daxmc99 daxmc99 commented Apr 20, 2021

Continuation of #86

Happy to not add this if this exceeds what the base installation should do

Signed-off-by: Dax McDonald [email protected]

@@ -38,7 +38,14 @@
{
"type": "shell",
"inline": [
"touch /tmp/test"
"mv /etc/resolv.conf /etc/resolv.conf.bk",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is going to be added I would do it as a seperate provisioner. I'd also suggest using Ansible rather than a shell script. However overall I think this pollutes the board image generation and should be done via optionally calling into another builder.

Copy link
Collaborator

@dbast dbast May 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depends... ansible is good at idempotent playbooks, that are re-run to update a machine... the update case does not exist here... that is why also ansible/puppet/chef are not used inside a Dockerfile... the packer configs here also run always end2end similar to a Dockerfile ... no need to bring in a ansible..

Another way would be extracting the added code here to e.g. ./scripts/setup-docker-ubuntu.sh ... and use it from there inside a provisioner... similar to the resize scripts already in the scripts folder.. this would make it a bit more reusable...

@dbast
Copy link
Collaborator

dbast commented Oct 17, 2022

Extracted the logic into a separate provision script and mentioning the scripts in the README.md. It's always good to have more arm specific example scripts as inspiration when setting up own boards.

@dbast dbast merged commit 5be87ec into mkaczanowski:master Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants