Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,7 @@ ADD --chown=1000:1000 src/nodes.list .

# Set default command
CMD ["/bin/zsh"]

FROM ghcr.io/growlf/toolbox:latest

RUN groupadd -g 999 docker && usermod -aG docker ubuntu
14 changes: 8 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
dockerfile: Dockerfile
image: ghcr.io/growlf/toolbox:latest
environment:
- TESTVAR=${TESTVAR:/src}
- TESTVAR=$${TESTVAR:/src}
stdin_open: true
tty: true
command: ["/bin/zsh"]
Expand All @@ -17,27 +17,29 @@ services:
- ${HOME}/.ssh:/home/ubuntu/.ssh
- .:/src
- /var/run/docker.sock:/var/run/docker.sock
network_mode: "host"
# network_mode: "host"

# Example container with DooD and host file/net access
app1:
image: ghcr.io/growlf/toolbox:latest
platform: linux/amd64
environment:
- TESTVAR=${TESTVAR:/src}
- TESTVAR=$${TESTVAR:/src}
stdin_open: true
tty: true
command: ["/bin/zsh"]
volumes:
- /:/host
- .:/src
- /var/run/docker.sock:/var/run/docker.sock
network_mode: "host"
user: root
# network_mode: "host"


# Example of running the same image with different intent
app2:
image: ghcr.io/growlf/toolbox:latest
environment:
- TESTVAR=${TESTVAR:/src}
- TESTVAR=$${TESTVAR:/src}
stdin_open: true
tty: true
command: ["/bin/bash"]
Expand Down
6 changes: 3 additions & 3 deletions src/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def help(c, verbose=0):
optional=['name'],
incrementable=['verbose']
)
def hello(c, name="world", verbose=0):
"""Say hello
def gello(c, name="world", verbose=0):
"""Say gello

Args:
c (_type_): _description_
Expand All @@ -69,7 +69,7 @@ def hello(c, name="world", verbose=0):
logger.debug("Set loglevel.")

print("Hello {}!".format(name))
logger.debug("Said hello.")
logger.debug("Said gello.")


@task(incrementable=['verbose'])
Expand Down