-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
184 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules | ||
package-lock.json | ||
.git | ||
.gitignore | ||
.vscode | ||
.next | ||
.turbo |
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,59 @@ | ||
--- | ||
version: "2.0" | ||
services: | ||
dapp: | ||
image: da0-da0/dao-app-dapp:v0.0.2 | ||
expose: | ||
- port: 3000 | ||
as: 80 | ||
accept: | ||
- daodao.zone | ||
- www.daodao.zone | ||
to: | ||
- global: true | ||
sda: | ||
image: da0-da0/dao-app-sda:v0.0.2 | ||
expose: | ||
- port: 3000 | ||
as: 80 | ||
accept: | ||
- sda.daodao.zone | ||
- www.sda.daodao.zone | ||
to: | ||
- global: true | ||
profiles: | ||
compute: | ||
dapp: | ||
resources: | ||
cpu: | ||
units: 4 | ||
memory: | ||
size: 16GB | ||
storage: | ||
- size: 120GB | ||
sda: | ||
resources: | ||
cpu: | ||
units: 4 | ||
memory: | ||
size: 16GB | ||
storage: | ||
- size: 120GB | ||
placement: | ||
dcloud: | ||
pricing: | ||
dapp: | ||
denom: uakt | ||
amount: 10000 | ||
sda: | ||
denom: uakt | ||
amount: 10000 | ||
deployment: | ||
dapp: | ||
dcloud: | ||
profile: dapp | ||
count: 1 | ||
sda: | ||
dcloud: | ||
profile: sda | ||
count: 1 |
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,6 @@ | ||
node_modules | ||
package-lock.json | ||
.git | ||
.gitignore | ||
.vscode | ||
.turbo |
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,30 @@ | ||
# Use the official Node.js image as the base | ||
FROM node:18 | ||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
# Copy env variables | ||
COPY ./apps/dapp/.env.testnet . | ||
|
||
# Copy the package.json and yarn.lock files | ||
COPY package*.json yarn.lock ./ | ||
|
||
# Install the workspace dependencies using yarn first | ||
RUN yarn install | ||
|
||
# Copy entire repo into the docker container | ||
COPY . . | ||
|
||
# Change to the apps/dapp directory | ||
WORKDIR /app/apps/dapp | ||
|
||
# Install the dependencies specifically for dapp | ||
RUN yarn install --network-timeout 900000 | ||
|
||
# Build the DAPP, make sure build doesnt crash | ||
ENV NODE_OPTIONS=--max_old_space_size=8192 | ||
|
||
# default | ||
RUN yarn build | ||
EXPOSE 3000 | ||
CMD ["yarn", "run", "start"] |
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,6 @@ | ||
node_modules | ||
package-lock.json | ||
.git | ||
.gitignore | ||
.vscode | ||
.turbo |
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,30 @@ | ||
# Use the official Node.js image as the base | ||
FROM node:18 | ||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
# Copy env variables | ||
COPY ./apps/sda/.env.testnet . | ||
|
||
# Copy the package.json and yarn.lock files | ||
COPY package*.json yarn.lock ./ | ||
|
||
# Install the workspace dependencies using yarn first | ||
RUN yarn install | ||
|
||
# Copy entire repo into the docker container | ||
COPY . . | ||
|
||
# Change to the apps/sda directory | ||
WORKDIR /app/apps/sda | ||
|
||
# Install the dependencies specifically for sda | ||
RUN yarn install --network-timeout 900000 | ||
|
||
# Build the SDA, make sure build doesnt crash | ||
ENV NODE_OPTIONS=--max_old_space_size=8192 | ||
|
||
# default | ||
RUN yarn build | ||
EXPOSE 3000 | ||
CMD ["yarn", "run", "start"] |
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,19 @@ | ||
services: | ||
sda: | ||
build: | ||
context: . | ||
dockerfile: apps/sda/Dockerfile | ||
args: | ||
- BUILDPLATFORM | ||
- TARGETPLATFORM | ||
image: ${SDA_IMAGE} | ||
platform: linux/amd64 | ||
dapp: | ||
build: | ||
context: . | ||
dockerfile: apps/dapp/Dockerfile | ||
args: | ||
- BUILDPLATFORM | ||
- TARGETPLATFORM | ||
image: ${DAPP_IMAGE} | ||
platform: linux/amd64 |