-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed prod and dev Dockerfiles and docker-compose files. Added foss…
…ology/fossology:latest as a service in dev docker-compose file.
- Loading branch information
1 parent
1a015a9
commit c9a75ca
Showing
6 changed files
with
98 additions
and
43 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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,63 @@ | ||
# FOSSology docker-compose file | ||
|
||
# Copyright (C) 2022 Vineet Vatsal (vineetvatsal09@gmail.com) | ||
|
||
# SPDX-License-Identifier: GPL-2.0 | ||
|
||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# version 2 as published by the Free Software Foundation. | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
|
||
# You should have received a copy of the GNU General Public License along | ||
# with this program; if not, write to the Free Software Foundation, Inc., | ||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
|
||
# Description: docker-compose file for development environment. | ||
|
||
|
||
version: "3.9" | ||
|
||
services: | ||
fossologyui_server: | ||
build: | ||
context: Dockerfile.dev | ||
args: | ||
- REACT_APP_SERVER_URL=localhost/repo/api/v2 | ||
- REACT_APP_HTTPS=false | ||
image: fossologyui:react1.0 | ||
command: ../node_modules/.bin/react-scripts start | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- .:/usr/src/fossologyui/app:delegated | ||
# bind-mounting these three files in will let you add packages during development without rebuilding | ||
# for example, to add bower to your app while developing, just install it inside the container | ||
# and then nodemon will restart. Your changes will last until you "docker-compose down" and will | ||
# be saved on host for next build | ||
# NOTE: this won't work on Docker Toolbox (virtualbox) which doesn't bind-mount single files | ||
# docker-compose exec node npm install --save bower | ||
- ./package.json:/usr/src/fossologyui/package.json | ||
- ./package-lock.json:/usr/src/fossologyui/package-lock.json | ||
- ./yarn.lock:/usr/src/fossologyui/yarn.lock | ||
# this is a workaround to prevent host node_modules from accidently getting mounted in container | ||
# in case you want to use node/npm both outside container for test/lint etc. and also inside container | ||
# this will overwrite the default node_modules dir in container so it won't conflict with our | ||
# /usr/src/fossologyui/node_modules location. | ||
- notused:/usr/src/fossologyui/node_modules | ||
|
||
fossology_server: | ||
image: fossology/fossology:latest | ||
ports: | ||
- "8081:80" | ||
volumes: | ||
- repository:/srv/fossology/repository/ | ||
- database:/var/lib/postgresql/data | ||
|
||
volumes: | ||
notused: | ||
repository: | ||
database: |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,32 +1,34 @@ | ||
# FOSSology docker-compose file | ||
|
||
# Copyright (C) 2022 Vineet Vatsal (vineetvatsal09@gmail.com) | ||
|
||
# SPDX-License-Identifier: GPL-2.0 | ||
|
||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# version 2 as published by the Free Software Foundation. | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
|
||
# You should have received a copy of the GNU General Public License along | ||
# with this program; if not, write to the Free Software Foundation, Inc., | ||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
|
||
# Description: docker-compose file for production environment | ||
|
||
|
||
version: "3.9" | ||
|
||
services: | ||
fossolgyui_server: | ||
fossologyui_server: | ||
build: | ||
context: dev.Dockerfile | ||
context: Dockerfile | ||
args: | ||
- REACT_APP_SERVER_URL=localhost/repo/api/v2 | ||
- REACT_APP_HTTPS=false | ||
image: fossologyui:react1.0 | ||
command: ../node_modules/.bin/react-scripts start | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- .:/usr/src/fossologyui/app:delegated | ||
# bind-mounting these three files in will let you add packages during development without rebuilding | ||
# for example, to add bower to your app while developing, just install it inside the container | ||
# and then nodemon will restart. Your changes will last until you "docker-compose down" and will | ||
# be saved on host for next build | ||
# NOTE: this won't work on Docker Toolbox (virtualbox) which doesn't bind-mount single files | ||
# docker-compose exec node npm install --save bower | ||
- ./package.json:/usr/src/fossologyui/package.json | ||
- ./package-lock.json:/usr/src/fossologyui/package-lock.json | ||
- ./yarn.lock:/usr/src/fossologyui/yarn.lock | ||
# this is a workaround to prevent host node_modules from accidently getting mounted in container | ||
# in case you want to use node/npm both outside container for test/lint etc. and also inside container | ||
# this will overwrite the default node_modules dir in container so it won't conflict with our | ||
# /usr/src/fossologyui/node_modules location. | ||
- notused:/usr/src/fossologyui/node_modules | ||
|
||
volumes: | ||
notused: | ||
command: yarn start |