-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Signaling 노드 서버 초기 세팅 * ci: signaling-node-server ci 및 Dockerfile 작성 * ci: babel 의존성 에러 수정 * ci: babel 의존성 에러 수정 * feat: 로그 찍기 * feat: 시그널링 로직 변경 * feat: 인자 객체로 변경 * feat: 객체 필드 변경 * feat: 응답 객체로 변경 * fix: 인자 변경 * fix: 인자 변경 * feat: 로직 수정 * feat: 로그 찍기 * refactor: mesh 구조를 변경합니다. * fix: port 번호 변경 * feat: eureka등록 * fix: disabled 제거 * fix: eureka config 변경 --------- Co-authored-by: soeun2537 <soeun2537@gmail.com>
- Loading branch information
Showing
9 changed files
with
5,703 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,42 @@ | ||
name: Push Server Image | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev/signaling-node-server # 서버 별로 변경 필요 | ||
pull_request: | ||
branches: | ||
- dev/signaling-node-server # 서버 별로 변경 필요 | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
SERVER_NAME: signaling-node-server # 서버 별로 변경 필요 | ||
|
||
strategy: | ||
matrix: | ||
node-version: ['18.x', '20.x'] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Log in to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ env.DOCKERHUB_USERNAME }} | ||
password: ${{ env.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push Docker image | ||
run: | | ||
cd src/backend/${{ env.SERVER_NAME }} | ||
docker build -t ${{ env.DOCKERHUB_USERNAME }}/${{ env.SERVER_NAME }}:latest . | ||
docker push ${{ env.DOCKERHUB_USERNAME }}/${{ env.SERVER_NAME }}:latest |
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,4 @@ | ||
/node_modules | ||
.DS_Store | ||
/questionImgs | ||
/build |
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,15 @@ | ||
FROM node:18 | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install --production | ||
|
||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
EXPOSE 9090 | ||
|
||
CMD ["npm", "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,3 @@ | ||
{ | ||
"presets": ["@babel/preset-env"] | ||
} |
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,3 @@ | ||
{ | ||
"exec": "babel-node src/server.js" | ||
} |
Oops, something went wrong.