-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Jdelpizz/j-dev
Add docker support
- Loading branch information
Showing
14 changed files
with
202 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
VITE_MSN_NUMBER=1337 | ||
VITE_MSN_PLATFORM=F-35 | ||
VITE_MSN_TAKEOFF=0900 | ||
VITE_MSN_RETURN=0930 | ||
VITE_SHOPS=BCD GCCS IAMD INTEL FREQ | ||
VITE_WS_MSN_URI=msn-api | ||
VITE_WS_MSN_PORT=8889 | ||
VITE_WS_MSN_CONTROL_PATH=msn-control | ||
VITE_WS_MX_URI=mx-api | ||
VITE_WS_MX_PORT=8888 | ||
VITE_WS_MX_CONTROL_PATH=mx-controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
services: | ||
dashboard: | ||
image: tv-dashboard | ||
build: | ||
context: . | ||
target: dashboard | ||
ports: | ||
- "1000:5173" | ||
environment: | ||
- VITE_MSN_NUMBER=1337 | ||
- VITE_MSN_PLATFORM=F-16 | ||
- VITE_MSN_TAKEOFF=0900 | ||
- VITE_MSN_RETURN=0930 | ||
- VITE_SHOPS=BCD GCCS IAMD INTEL FREQ WX | ||
|
||
- VITE_WS_MSN_URI=msn-api | ||
- VITE_WS_MSN_PORT=8889 | ||
- VITE_WS_MSN_PATH=msn-dashboard | ||
- VITE_WS_MSN_CONTROL_PATH=msn-controller | ||
|
||
- VITE_WS_MX_URI=mx-api | ||
- VITE_WS_MX_PORT=8888 | ||
- VITE_WS_MX_PATH=mx-dashboard | ||
- VITE_WS_MX_CONTROL_PATH=mx-controller | ||
|
||
|
||
msn-api: | ||
image: tv-msn-api-server | ||
build: | ||
context: . | ||
target: msn-api-server | ||
ports: | ||
- "1010:8889" | ||
environment: | ||
- VITE_DATA_SERVERS=http://msn-data-1:8012 http://msn-data-2:8012 http://msn-data-3:8012 http://msn-data-4:8012 http://msn-data-5:8012 http://msn-data-6:8012 | ||
|
||
msn-data-1: | ||
image: tv-msn-data-server | ||
build: | ||
context: . | ||
target: msn-data-server | ||
ports: | ||
- "1011:8012" | ||
command: make start p=8012 t=bcd | ||
|
||
msn-data-2: | ||
image: tv-msn-data-server | ||
build: | ||
context: . | ||
target: msn-data-server | ||
ports: | ||
- "1012:8012" | ||
command: make start p=8012 t=gccs | ||
|
||
msn-data-3: | ||
image: tv-msn-data-server | ||
build: | ||
context: . | ||
target: msn-data-server | ||
ports: | ||
- "1013:8012" | ||
command: make start p=8012 t=iamd | ||
|
||
msn-data-4: | ||
image: tv-msn-data-server | ||
build: | ||
context: . | ||
target: msn-data-server | ||
ports: | ||
- "1014:8012" | ||
command: make start p=8012 t=intel | ||
|
||
msn-data-5: | ||
image: tv-msn-data-server | ||
build: | ||
context: . | ||
target: msn-data-server | ||
ports: | ||
- "1015:8012" | ||
command: make start p=8012 t=freq | ||
|
||
msn-data-6: | ||
image: tv-msn-data-server | ||
build: | ||
context: . | ||
target: msn-data-server | ||
ports: | ||
- "1016:8012" | ||
command: make start p=8012 t=wx | ||
|
||
mx-api: | ||
image: tv-mx-api-server | ||
build: | ||
context: . | ||
target: mx-api-server | ||
ports: | ||
- "1020:8888" | ||
environment: | ||
- VITE_DATA_SERVERS=http://mx-data-1:8008 http://mx-data-2:8008 http://mx-data-3:8008 http://mx-data-4:8008 | ||
|
||
mx-data-1: | ||
image: tv-mx-data-server | ||
build: | ||
context: . | ||
target: mx-data-server | ||
ports: | ||
- "1021:8008" | ||
command: make start p=8008 t=tv-01 | ||
|
||
mx-data-2: | ||
image: tv-mx-data-server | ||
build: | ||
context: . | ||
target: mx-data-server | ||
ports: | ||
- "1022:8008" | ||
command: make start p=8008 t=tv-02 | ||
|
||
mx-data-3: | ||
image: tv-mx-data-server | ||
build: | ||
context: . | ||
target: mx-data-server | ||
ports: | ||
- "1023:8008" | ||
command: make start p=8008 t=tv-05 | ||
|
||
mx-data-4: | ||
image: tv-mx-data-server | ||
build: | ||
context: . | ||
target: mx-data-server | ||
ports: | ||
- "1024:8008" | ||
command: make start p=8008 t=tv-06 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM ubuntu AS base | ||
# Install dependencies | ||
RUN apt-get update | ||
RUN apt-get install -y curl make net-tools pip && curl -fsSL https://deb.nodesource.com/setup_19.x | bash - && apt-get install -y nodejs | ||
RUN pip install websockets | ||
|
||
WORKDIR /app | ||
|
||
FROM base as dashboard | ||
COPY dashboard /app | ||
RUN npm install | ||
EXPOSE 5173 | ||
CMD make | ||
|
||
|
||
FROM base as msn-api-server | ||
COPY msn-api-server /app | ||
EXPOSE 8889 | ||
CMD make | ||
|
||
FROM base as msn-data-server | ||
COPY msn-data-server /app | ||
EXPOSE 8012 | ||
CMD make start1 | ||
|
||
FROM base as mx-api-server | ||
COPY mx-api-server /app | ||
EXPOSE 8889 | ||
CMD make | ||
|
||
FROM base as mx-data-server | ||
COPY mx-data-server /app | ||
EXPOSE 8008 | ||
CMD make start1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
VITE_DATA_SERVERS = http://msn-data-1:8012 http://msn-data-2:8012 http://msn-data-3:8012 http://msn-data-4:8012 http://msn-data-5:8012 http://msn-data-6:8012 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
VITE_DATA_SERVERS=http://mx-data-1:8008 http://mx-data-2:8008 http://mx-data-3:8008 http://mx-data-4:8008 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker compose down; docker compose build; docker compose up -d |