mirror of
https://github.com/nicolabs/nicobot.git
synced 2025-09-05 17:15:36 +02:00
~ fixed : /etc/nicobot files were not copied there
This commit is contained in:
parent
97ff373a42
commit
ea1cddfdf3
|
@ -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
|
||||
|
|
6
Makefile
6
Makefile
|
@ -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 .
|
||||
|
||||
|
|
|
@ -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 :
|
||||
|
||||
|
|
|
@ -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" ]
|
||||
|
|
|
@ -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" ]
|
||||
|
|
Loading…
Reference in a new issue