~ fixed : /etc/nicobot files were not copied there

This commit is contained in:
nicobo 2021-02-07 23:00:02 +01:00
parent 97ff373a42
commit ea1cddfdf3
No known key found for this signature in database
GPG key ID: 2581E71C5FA5285F
5 changed files with 19 additions and 6 deletions

View file

@ -165,7 +165,7 @@ Here are the main application files and directories from within the images :
┃ ┗ 📜 ...
┣ 📂 root/
┃ ┗ 📂 .local/
┃ ┣ 📂 bin/ - - - - - - - - - - - - - -> shortcuts
┃ ┣ 📂 bin/ - - - - - - - - - - - - - -> Executable commands
┃ ┃ ┣ 📜 askbot
┃ ┃ ┣ 📜 docker-entrypoint.sh
┃ ┃ ┣ 📜 transbot

View file

@ -1,6 +1,12 @@
build:
python3 setup.py build sdist bdist_wheel
build-docker-alpine:
docker build -t nicolabs/nicobot:alpine -f alpine.Dockerfile .
build-docker-debian-signal:
docker build -t nicolabs/nicobot:signal-debian -f signal-debian.Dockerfile .
build-docker-debian:
docker build -t nicolabs/nicobot:debian -f debian.Dockerfile .

View file

@ -116,7 +116,14 @@ The container is invoked this way :
- `<bot name>` is either `transbot` or `askbot`
- `<bot arguments>` is the list of arguments to pass to the bot (see bots' usage)
If any doubt, just invoke the image without argument to print the inline help statement.
You can run the image without any argument to print the inline help statement.
Noteworthy directories :
- `/etc/nicobot` contains default, minimalistic configuration files
- `/var/nicobot` is empty but can be overridden with a volume to put custom files, *including secret ones*
[Develop.md](Develop.md) contains a thorough description of the inner filesystem of the Docker images.
Sample command to start a container :

View file

@ -84,7 +84,7 @@ WORKDIR /var/nicobot
RUN apk add --no-cache libressl-dev bash
# Required by slixmpp-omemo plugin
RUN mkdir -p .omemo
RUN mkdir -p /var/nicobot/.omemo
# Signal-cli also creates .signal-cli/
# Not used currently (we just copy the /root/.local directory which has everyting thanks to the --user option)
@ -104,5 +104,5 @@ COPY --from=builder /root/.local /root/.local/
# Otherwise the ENTRYPOINT would simply be [ "python"]
# Also copying some default configuration files
COPY docker/docker-entrypoint.sh /root/.local/bin/
COPY docker/default-conf/* .
COPY docker/default-conf/* /etc/nicobot/
ENTRYPOINT [ "docker-entrypoint.sh" ]

View file

@ -60,7 +60,7 @@ FROM python:3-slim
WORKDIR /var/nicobot
# Required by slixmpp-omemo plugin
RUN mkdir -p .omemo
RUN mkdir -p /var/nicobot/.omemo
# Signal-cli also creates .signal-cli/
# Not used currently (we just copy the /root/.local directory which has everyting thanks to the --user option)
@ -80,5 +80,5 @@ COPY --from=builder /root/.local /root/.local/
# Otherwise the ENTRYPOINT would simply be [ "python"]
# Also copying some default configuration files
COPY docker/docker-entrypoint.sh /root/.local/bin/
COPY docker/default-conf/* .
COPY docker/default-conf/* /etc/nicobot/
ENTRYPOINT [ "docker-entrypoint.sh" ]