-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from PoCInnovation/dev
Deployment #1
- Loading branch information
Showing
14 changed files
with
197 additions
and
120 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
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
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,28 +1,28 @@ | ||
# Contributing to [PROJECT'S NAME] | ||
# Contributing to InterPlanetaryCloud | ||
|
||
## Create an issue | ||
|
||
- If you've encountered a bug, open a [Bug Report](https://github.com/PoCInnovation/$REPOSITORY/issues/new?assignees=&labels=&template=bug_report.md&title=). | ||
- If you want [PROJECT'S NAME] to have a new fonctionality, open a [Feature Request](https://github.com/PoCInnovation/$REPOSITORY/issues/new?assignees=&labels=&template=feature_request.md&title=). | ||
- If you've encountered a bug, open a [Bug Report](https://github.com/PoCInnovation/InterPlanetaryCloud/issues/new?assignees=&labels=&template=bug_report.md&title=). | ||
- If you want InterPlanetaryCloud to have a new fonctionality, open a [Feature Request](https://github.com/PoCInnovation/InterPlanetaryCloud/issues/new?assignees=&labels=&template=feature_request.md&title=). | ||
|
||
## Resolve an issue | ||
|
||
Select an [issue](https://github.com/PoCInnovation/$REPOSITORY/issues) that you want to resolve. | ||
Select an [issue](https://github.com/PoCInnovation/InterPlanetaryCloud/issues) that you want to resolve. | ||
|
||
The recommended workflow is to fork this repository and open pull requests from your fork. | ||
|
||
### 1. Fork, clone & configure [PROJECT'S NAME] upstream | ||
### 1. Fork, clone & configure InterPlanetaryCloud upstream | ||
|
||
- Click on the _Fork_ button on GitHub | ||
- Clone the original repository | ||
- Add your repository as a new remote | ||
|
||
```sh | ||
# Clone original repository | ||
git clone [email protected]:PoCInnovation/$REPOSITORY.git | ||
git clone [email protected]:PoCInnovation/InterPlanetaryCloud.git | ||
|
||
# Add your fork as a remove | ||
git remote add <fork_name> https://github.com/$YOUR_GITHUB_USER/$REPOSITORY.git | ||
git remote add <fork_name> https://github.com/$YOUR_GITHUB_USER/InterPlanetaryCloud.git | ||
``` | ||
|
||
### 2. Create a pull request | ||
|
@@ -40,7 +40,7 @@ git commit -s | |
# Push your new branch | ||
git push <fork name> | ||
|
||
# Create a new pull request from https://github.com/PoCInnovation/$REPOSITORY/pulls | ||
# Create a new pull request from https://github.com/PoCInnovation/InterPlanetaryCloud/pulls | ||
``` | ||
|
||
### 3. Update your pull request with latest 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,41 @@ | ||
# Set the base image | ||
FROM node:16.5-alpine | ||
### | ||
# Builder image | ||
### | ||
FROM node:16.5-alpine AS builder | ||
|
||
# Retrieve sources | ||
WORKDIR /app | ||
COPY . /app | ||
|
||
# Install dependencies | ||
RUN npm install | ||
COPY package.json . | ||
COPY yarn.lock . | ||
|
||
# Install dependencies | ||
RUN yarn install | ||
|
||
# Copy source (see .dockerignore) | ||
COPY . . | ||
|
||
# Add env variable | ||
ENV REACT_APP_ALEPH_CHANNEL=TEST | ||
|
||
# Build source | ||
RUN yarn run build | ||
|
||
### | ||
# Production image | ||
### | ||
FROM nginx:1.21.6-alpine as app | ||
|
||
WORKDIR /app | ||
|
||
# Copy code | ||
COPY --from=builder /app/build /usr/share/nginx/html | ||
|
||
# Copy nginx configuration | ||
COPY nginx.conf /etc/nginx/conf.d/default.conf | ||
|
||
# Expose PORT | ||
EXPOSE 3000 | ||
EXPOSE 80 | ||
|
||
# Declare entrypoint | ||
ENTRYPOINT ["npm"] | ||
CMD ["start"] | ||
# Prefix commands and start production | ||
ENTRYPOINT ["nginx", "-g", "daemon off;"] |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"watchForFileChanges": false | ||
"watchForFileChanges": false, | ||
"baseUrl": "http://localhost:8080" | ||
} |
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
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
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,15 @@ | ||
server { | ||
listen 80; | ||
server_name localhost; | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
try_files $uri /index.html; | ||
} | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
} |
Oops, something went wrong.