Add docker files
This commit is contained in:
parent
b2c61734a5
commit
07345835bc
4 changed files with 6 additions and 3 deletions
|
@ -8,4 +8,4 @@ COPY . .
|
|||
RUN pip install .
|
||||
VOLUME config
|
||||
|
||||
CMD [ "python", "/usr/local/bin/discover_mastodon_servers.py", "--config", "/config/config.conf" ]
|
||||
CMD [ "python", "/usr/local/bin/__project_codename__.py", "--config", "/config/config.conf" ]
|
||||
|
|
3
skeleton/config/config.conf_sample
Normal file
3
skeleton/config/config.conf_sample
Normal file
|
@ -0,0 +1,3 @@
|
|||
debug_level='DEBUG'
|
||||
log_file='/config/__project_codename__.log'
|
||||
# list_of_parameters=['foo', 'bar']
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
podman build -t discovery-mastodon-servers .
|
||||
podman build -t __project_codename__ .
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
podman run --mount type=bind,src=config/,target=/config -t --rm --name discovery-mastodon-servers discovery-mastodon-servers
|
||||
podman run --mount type=bind,src=config/,target=/config -t --rm --name __project_codename__ __project_codename__
|
||||
|
|
Loading…
Reference in a new issue