diff --git a/.yarnrc.yml b/.yarnrc.yml index 8146152d..5790f2cb 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,17 +1,29 @@ plugins: - path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs - spec: "@yarnpkg/plugin-typescript" + spec: '@yarnpkg/plugin-typescript' packageExtensions: follow-redirects@*: dependencies: - debug: "*" + debug: '*' debug@*: dependencies: - supports-color: "*" + supports-color: '*' swiper@*: dependencies: - "@types/react": "^17" - react: "^17" + '@types/react': '^17' + react: '^17' + +supportedArchitectures: + cpu: + - x64 + - arm64 + libc: + - musl + - gnu + - glibc + os: + - darwin + - linux yarnPath: .yarn/releases/yarn-3.3.0.cjs diff --git a/apps/jurumarble/Dockerfile b/apps/jurumarble/Dockerfile new file mode 100644 index 00000000..707db3ce --- /dev/null +++ b/apps/jurumarble/Dockerfile @@ -0,0 +1,16 @@ +FROM node:16-alpine + +WORKDIR /usr/src/app + +RUN yarn set version berry + + +COPY *.* ./ + +RUN yarn install + +COPY . . + +EXPOSE 3000 + +CMD ["sh", "-c", "yarn workspace @monorepo/jurumarble dev"] \ No newline at end of file diff --git a/package.json b/package.json index 176e949d..14c0507b 100644 --- a/package.json +++ b/package.json @@ -3,14 +3,14 @@ "private": true, "scripts": { "chooz": "yarn workspace @monorepo/chooz", - "juma": "yarn workspace @monorepo/jurumarble" - }, - "workspaces": { - "packages": [ - "packages/*", - "apps/*" - ] + "juma": "yarn workspace @monorepo/jurumarble", + "juma:dev": "sh scripts/shell/jurumarble.sh", + "down": "docker compose -f ./scripts/docker/docker-compose.yaml down" }, + "workspaces": [ + "packages/*", + "apps/*" + ], "packageManager": "yarn@3.3.0", "dependencies": { "styled-components": "^5.3.6" diff --git a/scripts/docker/docker-compose.yaml b/scripts/docker/docker-compose.yaml new file mode 100644 index 00000000..723086c5 --- /dev/null +++ b/scripts/docker/docker-compose.yaml @@ -0,0 +1,15 @@ +version: '3' + +services: + jurumarble: + container_name: jurumarble + build: + context: . + dockerfile: ../../apps/jurumarble/Dockerfile + ports: + - 3000:3000 + volumes: + - ../..:/usr/src/app + - /usr/src/app/.next + - /usr/src/app/node_modules + command: sh -c "yarn workspace @monorepo/jurumarble dev" diff --git a/scripts/shell/jurumarble.sh b/scripts/shell/jurumarble.sh new file mode 100644 index 00000000..252f270f --- /dev/null +++ b/scripts/shell/jurumarble.sh @@ -0,0 +1,5 @@ +echo "start jurumarble ..." + +docker compose -f "./scripts/docker/docker-compose.yaml" build --no-cache + +docker compose -f "./scripts/docker/docker-compose.yaml" up -d \ No newline at end of file