Create Docker image for samovar 0.5.
Chris Pressey
1 year, 9 months ago
0 | |
FROM python:3.5.7-slim-stretch
|
|
0 |
FROM python:3.11-slim
|
1 | 1 |
RUN apt-get update && apt-get upgrade -y
|
2 | 2 |
RUN mkdir /mnt/host
|
3 | 3 |
WORKDIR /usr/src/app
|
|
0 |
The image contains [samovar](https://catseye.tc/node/Samovar) and its dependencies (Python 3.11-slim, mainly).
|
|
1 |
|
|
2 |
Example of use:
|
|
3 |
|
|
4 |
docker pull catseye/samovar:0.5
|
|
5 |
docker run --user $(id -u):$(id -g) -i -t -v "${PWD}:/mnt/host" catseye/samovar:0.5 \
|
|
6 |
samovar eg/foo.samovar
|
|
7 |
|
|
8 |
This Docker image is fairly experimental. Please don't lean on it too heavily.
|
|
9 |
|
|
10 |
The `-v "${PWD}:/mnt/host"` option in the above bind-mounts the current directory on the host to the working directory in the container. This lets you give filenames as usual on the `sixtypical` command line, so long as they reside somewhere under the current directory on the host. If you want anything more sophisticated than that, you'll have to establish more bind-mounts and translate paths between host and container as your needs dictate.
|
0 | 0 |
ORGNAME=catseye
|
1 | 1 |
SOURCE=Samovar
|
2 | 2 |
EXENAME=samovar
|
3 | |
VERSION=0.4
|
|
3 |
VERSION=0.5
|