Browse Source

Rename linux build override file, add full config

Anuj Bansal 3 years ago
parent
commit
33a8ce010f
3 changed files with 15 additions and 5 deletions
  1. 1 1
      build-docker-images.sh
  2. 0 4
      docker-compose.build.yml
  3. 14 0
      docker-compose.linux-gnu-build.yml

+ 1 - 1
build-docker-images.sh

@@ -39,7 +39,7 @@ docker-compose build distributor-node
 if [[ "$OSTYPE" == "linux-gnu" ]]; then
     IP_ADDRESS=$(ip addr show | grep "\binet\b.*\bdocker0\b" | awk '{print $2}' | cut -d '/' -f 1)
     # Run a local development chain
-    docker-compose -f docker-compose.yml -f docker-compose.build.yml up -d joystream-node
+    docker-compose -f docker-compose.linux-gnu-build.yml up -d joystream-node
 
     # Build processor/graphql-server docker image
     echo "Building joystream/apps docker image..."

+ 0 - 4
docker-compose.build.yml

@@ -1,4 +0,0 @@
-version: '3.4'
-services:
-  joystream-node:
-    network_mode: host

+ 14 - 0
docker-compose.linux-gnu-build.yml

@@ -0,0 +1,14 @@
+version: '3.4'
+services:
+  joystream-node:
+    image: joystream/node:latest
+    build:
+      # context is relative to the compose file
+      context: .
+      # dockerfile is relative to the context
+      dockerfile: joystream-node.Dockerfile
+    container_name: joystream-node
+    volumes:
+      - /data
+    command: --dev --alice --validator --unsafe-ws-external --unsafe-rpc-external --rpc-methods Unsafe --rpc-cors=all --log runtime --base-path /data
+    network_mode: host