Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 777 manage image updates #842

Closed
wants to merge 17 commits into from
Closed
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
6 changes: 3 additions & 3 deletions .github/workflows/tests-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ jobs:
mkdir -p tests/data/downloads
chown -R $(whoami):docker tests/data/downloads
chmod -R 775 tests/data/downloads
- name: setup wis2box configuration, replace localhost with IP on host 📦
- name: setup wis2box configuration, replace localhost with IP on host, use LOCAL_BUILD as wis2box.version 📦
run: |
export IP=$(hostname -I | awk '{print $1}')
cp tests/test.env wis2box.env
echo "LOCAL_BUILD" > wis2box.version
sed -i "s/localhost/$IP/g" wis2box.env
cat wis2box.env
python3 wis2box-ctl.py config
- name: build wis2box
- name: build wis2box locally ⚙️
run: |
python3 wis2box-ctl.py build
python3 wis2box-ctl.py update
- name: start containers ⚙️
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zaproxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: build and start containers using tests/test.env ⚙️
run: |
cp tests/test.env wis2box.env
python3 wis2box-ctl.py build
python3 wis2box-ctl.py update
python3 wis2box-ctl.py start
python3 wis2box-ctl.py status -a
sleep 30
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ wis2box.env
docker/.env

.ipynb_checkpoints
tests/data/.ssh/id_rsa
tests/data/.ssh/id_rsa.pub

docker-compose.yml
docker-compose.yml.bak
1 change: 1 addition & 0 deletions .zap/rules.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@
10110 IGNORE Dangerous JS Functions Low
10105 IGNORE Authentication Credentials Captured Medium
10003 IGNORE Vulnerable JS Library Medium
90004 IGNORE Insufficient Site Isolation Against Spectre Vulnerability Low
22 changes: 15 additions & 7 deletions docker-compose.yml → docker-compose.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,19 @@ services:

mosquitto:
container_name: mosquitto
#image: ghcr.io/wmo-im/wis2box-broker:latest
image: ghcr.io/wmo-im/wis2box-broker:latest
restart: always
build:
context: ./wis2box-broker
env_file:
- wis2box.env
volumes:
- mosquitto-config:/mosquitto/config

wis2box-management:
container_name: wis2box-management
image: ghcr.io/wmo-im/wis2box-management:latest
mem_limit: 1g
memswap_limit: 1g
restart: always
#image: ghcr.io/wmo-im/wis2box-management:latest
build:
context: ./wis2box-management
#user: wis2box:wis2box
env_file:
- wis2box.env
volumes:
Expand All @@ -134,6 +129,19 @@ services:
condition: service_healthy
command: ["wis2box", "pubsub" , "subscribe"]

# mqtt_metrics_collector, listens to mqtt-broker
mqtt_metrics_collector:
container_name: mqtt_metrics_collector
restart: unless-stopped
env_file:
- wis2box.env
image: ghcr.io/wmo-im/wis2box-mqtt-metrics-collector:latest
depends_on:
- mosquitto
- wis2box-management
ports:
- 8001:8001

wis2box-auth:
container_name: wis2box-auth
image: ghcr.io/wmo-im/wis2box-auth:latest
Expand Down
18 changes: 2 additions & 16 deletions docker-compose.monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,6 @@ services:
vpcbr: # this is the place where we assign the static ipv4 address
ipv4_address: 10.5.0.2
default:

# mqtt_metrics_collector, listens to mqtt-broker
mqtt_metrics_collector:
<<: *logging
container_name: mqtt_metrics_collector
restart: unless-stopped
env_file:
- wis2box.env
#image: ghcr.io/wmo-im/wis2box-mqtt-metrics-collector:latest
build:
context: ./wis2box-mqtt-metrics-collector
depends_on:
- mosquitto
- wis2box-management
ports:
- 8001:8001

# prometheus to collect metrics
prometheus:
Expand Down Expand Up @@ -129,6 +113,8 @@ services:
<<: *logging
wis2box-auth:
<<: *logging
mqtt_metrics_collector:
<<: *logging
minio:
<<: *logging
web-proxy:
Expand Down
5 changes: 2 additions & 3 deletions docs/source/reference/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ To run with the 'quickstart' configuration, copy this file to ``wis2box.env`` in
cp tests/test.env wis2box.env


Build and update wis2box:
Build and update wis2box from the source code:

.. code-block:: bash

python3 wis2box-ctl.py build
python3 wis2box-ctl.py update
python3 wis2box-ctl.py update-local-build


Start wis2box and login to the wis2box-management container:
Expand Down
Loading
Loading