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

도커 세팅 #201

Merged
merged 1 commit into from
Oct 18, 2023
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
22 changes: 17 additions & 5 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions apps/jurumarble/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
15 changes: 15 additions & 0 deletions scripts/docker/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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"
5 changes: 5 additions & 0 deletions scripts/shell/jurumarble.sh
Original file line number Diff line number Diff line change
@@ -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
Loading