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

Updates in deployment script to reflect container-container communication #35

Merged
merged 1 commit into from
Jan 19, 2024
Merged
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
2 changes: 1 addition & 1 deletion install/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Set-ExecutionPolicy -ExecutionPolicy ByPass -Scope CurrentUser
```commandline
.\install.ps1
```
6. Open browser and navigate to `http://localhost:81`
6. Open browser and navigate to `http://localhost:8080`
7. The default credentials are:
- Username: admin
- Password: ohdsi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
datanode.baseURL=http://host.docker.internal
datanode.port=81
datanode.baseURL=http://arachne-datanode
datanode.port=8080
server.ssl.enabled=false

executionEngine.protocol=https
Expand Down
10 changes: 5 additions & 5 deletions install/docker/docker-compose-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ services:
ports:
- "8888:8888" # Port mapping (host:container)
volumes:
- $USERPROFILE/ArachneDatanode/dist:/dist
- $USERPROFILE/ArachneDatanode/runtimes:/runtimes
- $USERPROFILE/ArachneDatanode/execution-engine/tmp:/tmp

environment:
- RUNTIMESERVICE_DIST_ARCHIVE=/dist/r_base_focal_amd64.tar.gz
- RUNTIMESERVICE_DIST_ARCHIVEFOLDER=/dist/
- RUNTIMESERVICE_DIST_ARCHIVE=/runtimes/r_base_focal_amd64.tar.gz
- RUNTIMESERVICE_DIST_ARCHIVEFOLDER=/runtimes/
- RUNTIMESERVICE_DIST_VERBOSE_LOG=true
- docker.enable=false
- applyRuntimeDependenciesComparisonLogic=true
Expand All @@ -51,11 +51,11 @@ services:
networks:
- arachne-network
ports:
- "81:8080" # Port mapping (host:container)
- "8080:8080" # Port mapping (host:container)
volumes:
- arachne-datanode-files:/var/arachne/files # Volume mount for Arachne data
env_file:
- $USERPROFILE/ArachneDatanode/conf/datanode-windows.env # Environment variables file
- $USERPROFILE/ArachneDatanode/conf/datanode.env # Environment variables file
depends_on:
- arachne-datanode-postgres
- arachne-execution-engine
Expand Down
4 changes: 2 additions & 2 deletions install/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ services:
- /tmp:/tmp
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/executions:/etc/executions
- ~/ArachneDatanode:/dist
- ~/ArachneDatanode:/runtimes
environment:
- RUNTIMESERVICE_DIST_VERBOSE_LOG=true
- applyRuntimeDependenciesComparisonLogic=true
- libraries.location.strategus=strategus
- DOCKER_IMAGE_DEFAULT=odysseusinc/r-hades:latest
- ANALYSIS_MOUNT=/tmp/executions
- DOCKER_ENABLE=true
- RUNTIMESERVICE_DIST_ARCHIVEFOLDER=/dist/
- RUNTIMESERVICE_DIST_ARCHIVEFOLDER=/runtimes/

# Arachne Datanode Service
arachne-datanode:
Expand Down
6 changes: 3 additions & 3 deletions install/docker/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ try {
}

# Create ArachneDatanode Folder if not exists
$datanodeFolderPathDist = Join-Path $env:USERPROFILE "ArachneDatanode\dist"
$datanodeFolderPathDist = Join-Path $env:USERPROFILE "ArachneDatanode\runtimes"
if (-not (Test-Path $datanodeFolderPathDist -PathType Container)) {
New-Item -ItemType Directory -Path $datanodeFolderPathDist
Write-Host "Created ArachneDatanode R-Package folder."
Expand Down Expand Up @@ -122,8 +122,8 @@ try {
}
$fileInfo_conf = @{
envfile = @{
fileName = "datanode-windows.env"
url = "https://storage.googleapis.com/arachne-datanode/datanode.env"
fileName = "datanode.env"
url = "https://raw.githubusercontent.com/OHDSI/Arachne/master/install/docker/datanode.env"
sizeThresholdMB = 0.01
}
}
Expand Down
2 changes: 1 addition & 1 deletion install/docker/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ for folder in "${folders[@]}"; do
done


cp datanode-example.env ~/ArachneDatanode/datanode.env
cp datanode.env ~/ArachneDatanode/datanode.env
cd ~/ArachneDatanode
wget https://storage.googleapis.com/arachne-datanode/descriptor_base.json

Expand Down