Skip to content

Instantly share code, notes, and snippets.

@prologic
Created November 19, 2014 12:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prologic/b1a282bb7979c2c5af51 to your computer and use it in GitHub Desktop.
Save prologic/b1a282bb7979c2c5af51 to your computer and use it in GitHub Desktop.
Rough idea of prttest
#!/bin/bash
PORT=$(dirname pwd)
cat - > Dockerfile <<EOF
FROM crux/base
VOLUME /usr/ports/contrib/test
RUN ports -u && prt-get cache
WORKDIR /usr/ports/contrib/test
COPY . /
RUN prt-get cache
RUN prt-get depinst ${PORT}
EOF
docker build -t ${PORT} .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment