-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
43 lines (29 loc) · 1.76 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM ubuntu:latest
# MAINTAINER is deprecated, but I don't know how else to set the `AUTHOR` metadata
MAINTAINER [email protected]
# Labels.
LABEL maintainer="[email protected]"
# https://medium.com/@chamilad/lets-make-your-docker-image-better-than-90-of-existing-ones-8b1e5de950d
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.name="jgstewrecipes"
LABEL org.label-schema.description="Run jgstew-recipes using AutoPkg on Ubuntu:latest"
LABEL org.label-schema.url="https://github.com/jgstew/jgstew-recipes"
LABEL org.label-schema.vcs-url="https://github.com/jgstew/jgstew-recipes"
LABEL org.label-schema.docker.cmd="docker run --rm jgstewrecipes run -vv com.github.jgstew.test.DateTimeFromString"
# Update everything?
# RUN apt-get update && apt-get upgrade -y
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
# RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes libmagic-dev jq p7zip-full msitools curl git wget python3 python3-pip build-essential libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /root/jgstew-recipes
COPY . /root/jgstew-recipes
WORKDIR /root/jgstew-recipes
RUN bash setup_ubuntu.sh
ENTRYPOINT ["./../autopkg/.venv/bin/python3", "../autopkg/Code/autopkg"]
CMD ["help"]
# Interactive:
# docker run --rm -it --entrypoint bash jgstewrecipes
# Run recipe from within Interactive shell
# python3 ../autopkg/Code/autopkg run -vv com.github.jgstew.test.DateTimeFromString
# Run a specific recipe:
# docker run --rm jgstewrecipes run -vv com.github.jgstew.test.DateTimeFromString
# run test recipes: docker run --rm jgstewrecipes run -vv --recipe-list Test-Recipes/Test-Recipes.recipelist.txt