Skip to content

Commit 408bd80

Browse files
committed
Run the mongo and redis in ARM and OS-server in AMD64 make the project running locally.
1 parent 1e4dbc6 commit 408bd80

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#prepration
2+
docker volume create --name=osdata
3+
docker volume create --name=dbdata
4+
5+
#start the oss
6+
docker-compose -f docker-compose.yml up --scale worker=8
7+
8+
#cleanup if you finished the work
9+
docker container rm -f $(docker container ls -aq)
10+
docker volume rm dbdata osdata -f

local_setup_scripts/win64/docker-compose-local.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
version: '3.4'
22
services:
33
db:
4-
image: 127.0.0.1:5000/mongo
4+
platform: linux/arm64
5+
image: mongo:6.0.7
56
ports:
67
- "27017:27017"
78
volumes:
@@ -15,7 +16,8 @@ services:
1516
MONGO_INITDB_ROOT_PASSWORD: openstudio
1617
command: "mongod --setParameter internalQueryMaxAddToSetBytes=209715200 --setParameter internalQueryMaxBlockingSortMemoryUsageBytes=209715200"
1718
queue:
18-
image: 127.0.0.1:5000/redis
19+
platform: linux/arm64
20+
image: redis:6.0.9
1921
ports:
2022
- "6379:6379"
2123
deploy:
@@ -24,7 +26,8 @@ services:
2426
- node.role == manager
2527
command: "redis-server --requirepass openstudio --maxclients 40000"
2628
web:
27-
image: 127.0.0.1:5000/openstudio-server
29+
platform: linux/amd64
30+
image: nrel/openstudio-server:3.9.0-rc3
2831
ports:
2932
- "8080:80"
3033
- "80:80"
@@ -49,7 +52,8 @@ services:
4952
- node.role == manager
5053
command: /usr/local/bin/start-server
5154
web-background:
52-
image: 127.0.0.1:5000/openstudio-server
55+
platform: linux/amd64
56+
image: nrel/openstudio-server:3.9.0-rc3
5357
environment:
5458
- OS_SERVER_NUMBER_OF_WORKERS=1
5559
- QUEUES=background,analyses
@@ -70,7 +74,8 @@ services:
7074
- node.role == manager
7175
command: /usr/local/bin/start-web-background
7276
worker:
73-
image: 127.0.0.1:5000/openstudio-server
77+
platform: linux/amd64
78+
image: nrel/openstudio-server:3.9.0-rc3
7479
environment:
7580
- QUEUES=requeued,simulations
7681
- COUNT=1
@@ -90,7 +95,8 @@ services:
9095
endpoint_mode: dnsrr
9196
command: /usr/local/bin/start-workers
9297
rserve:
93-
image: 127.0.0.1:5000/openstudio-rserve
98+
platform: linux/amd64
99+
image: nrel/openstudio-rserve:3.9.0-rc3
94100
volumes:
95101
- osdata:/mnt/openstudio
96102
depends_on:

0 commit comments

Comments
 (0)