forked from puppetlabs-toy-chest/libral
-
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.
Added a Dockerfile for experimenting with precompiled bins
I put this together for my own purposes but sharing here as it's likely useful for others. A couple of related thoughts: * I'll update the docs with instructions for mounting providers for testing once puppetlabs-toy-chest#34 is resolved. * I could have used the new multi-state builds to avoid some of the apt wranging, but left this way for now until multi-stage builds works it's way into a stable Docker release * This only supports building from the precompiled binary. I'll take a run at converting the HACKING instructions at some point so you can build using Docker, that should be a separate PR I also haven't pushed an image to Docker Hub. I would be happy to do that if useful or hold off for now.
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |
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,19 @@ | ||
FROM ubuntu:latest | ||
MAINTAINER Gareth Rushgrove "[email protected]" | ||
|
||
ARG LIBRAL_DOWNLOAD_LOCATION="http://download.augeas.net/libral/" | ||
ARG LIBRAL_FILENAME="ralsh-latest.tgz" | ||
|
||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y wget && \ | ||
wget "${LIBRAL_DOWNLOAD_LOCATION}${LIBRAL_FILENAME}" && \ | ||
tar zxvf "$LIBRAL_FILENAME" -C /opt && \ | ||
apt-get remove --purge -y wget && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm "$LIBRAL_FILENAME" | ||
|
||
ENV PATH=/opt/ral/bin:$PATH | ||
|
||
ENTRYPOINT ["/opt/ral/bin/ralsh"] |
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