WIP: Working individual containers and docker compose demo
This commit is contained in:
committed by
=Michael Hohn
parent
259bac55fb
commit
34958e4cf4
@@ -25,5 +25,6 @@ RUN pip install -r requirements.txt
|
||||
# Install qldbtools
|
||||
RUN pip install .
|
||||
|
||||
# Set the default entrypoint
|
||||
CMD ["/bin/bash"]
|
||||
# Run forever
|
||||
CMD ["tail", "-f", "/dev/null"]
|
||||
|
||||
|
||||
24
client/containers/qldbtools/Makefile
Normal file
24
client/containers/qldbtools/Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
DBT_TARGET := client-qldbtools-container:0.1.24
|
||||
|
||||
# Build the qldbtools container image
|
||||
dbt: client-qldbtools-container
|
||||
client-qldbtools-container:
|
||||
docker build -t ${DBT_TARGET} .
|
||||
touch $@
|
||||
|
||||
# Run a shell in the container with the qldbtools
|
||||
dbt-run: dbt
|
||||
docker run --rm -it ${DBT_TARGET} /bin/bash
|
||||
|
||||
# Run one of the scripts in the container as check. Should exit with error.
|
||||
dbt-check: dbt
|
||||
docker run --rm -it ${DBT_TARGET} mc-db-initial-info
|
||||
|
||||
dbt-push: dbt
|
||||
docker tag ${DBT_TARGET} ghcr.io/hohn/${DBT_TARGET}
|
||||
docker push ghcr.io/hohn/${DBT_TARGET}
|
||||
touch $@
|
||||
|
||||
dbt-test:
|
||||
docker pull ghcr.io/hohn/${DBT_TARGET}
|
||||
docker run --rm -it --name test-dbt-server ghcr.io/hohn/${DBT_TARGET} sh
|
||||
@@ -1,18 +1,13 @@
|
||||
* MRVA python tools container
|
||||
Set upDocker image with python 3.11 and pip and the qldbtools
|
||||
Set up Docker image with python 3.11 and pip and the qldbtools. The targets are
|
||||
in the =Makefile=; most important are
|
||||
|
||||
#+BEGIN_SRC sh
|
||||
# Build
|
||||
cd ~/work-gh/mrva/mrvacommander
|
||||
make dbt
|
||||
|
||||
# Check
|
||||
cd ~/work-gh/mrva/mrvacommander
|
||||
make dbt-check
|
||||
|
||||
# Use
|
||||
cd ~/work-gh/mrva/mrvacommander
|
||||
make dbt-run
|
||||
|
||||
#+END_SRC
|
||||
|
||||
|
||||
Reference in New Issue
Block a user