Skip to content

Instantly share code, notes, and snippets.

@ramitsurana
Last active July 8, 2016 18:51
Show Gist options
  • Save ramitsurana/06f08da66dc9ec1c3a6299773bdaf4f0 to your computer and use it in GitHub Desktop.
Save ramitsurana/06f08da66dc9ec1c3a6299773bdaf4f0 to your computer and use it in GitHub Desktop.
Steps to build an aci image using acbuild utility
# Steps to build an apache aci image using acbuild utility
# Based on alpine
acbuild --debug dep add quay.io/coreos/alpine-sh
# Install apache
acbuild --debug run -- apk update
acbuild --debug run -- apk add apache2
acbuild --debug run -- /bin/sh -c "echo 'ServerName localhost' >> /etc/apache2/httpd.conf"
# Add a port for http traffic on port 80
acbuild --debug port add http tcp 80
# Add a mount point for files to serve
acbuild --debug mount add html /var/www/localhost/htdocs
# Run apache, and remain in the foreground
acbuild --debug set-exec -- /bin/sh -c "chmod 755 / && /usr/sbin/httpd -D FOREGROUND"
# Write the result
acbuild --debug write --overwrite apache.aci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment