-
Notifications
You must be signed in to change notification settings - Fork 0
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 #14 from Sakuten/feature/13-auto-install
Change: Improvement of development environment
- Loading branch information
Showing
6 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
Submodule backend
updated
14 files
+59 −0 | .github/ISSUE_TEMPLATE.md | |
+34 −0 | .github/PULL_REQUEST_TEMPLATE.md | |
+2 −1 | .gitignore | |
+2 −0 | .hound.yml | |
+4 −2 | Dockerfile.dev | |
+6 −2 | Pipfile | |
+54 −3 | Pipfile.lock | |
+1 −0 | Procfile | |
+21 −0 | README.md | |
+32 −16 | api/app.py | |
+41 −0 | api/config.py | |
+1 −1 | api/routes/auth.py | |
+24 −0 | app.json | |
+1 −6 | app.py |
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
Submodule frontend
updated
57 files
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,12 @@ | ||
FROM python:3.6-stretch | ||
|
||
WORKDIR /code | ||
COPY Pipfile /code | ||
|
||
RUN pip install pipenv \ | ||
&& pipenv install --dev | ||
|
||
|
||
ENTRYPOINT ["pipenv", "run"] | ||
|
||
CMD ["fix"] |
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,21 @@ | ||
FROM node:8.11.2-stretch | ||
|
||
ADD https://github.com/yarnpkg/yarn/releases/download/v1.7.0/yarn-v1.7.0.tar.gz /opt/yarn.tgz | ||
|
||
WORKDIR /code | ||
COPY package.json /code | ||
|
||
RUN cd /opt \ | ||
&& tar xf yarn.tgz \ | ||
&& ln -s yarn-1.7.0/bin/yarn /bin/yarn \ | ||
&& cd /code \ | ||
&& yarn install --modules-folder /node_modules \ | ||
&& mkdir -p /node_modules/.bin \ | ||
&& for f in node_modules/.bin/*; do ln -sf "$(echo $(readlink $f) | sed -e 's|../../../node_modules/|../|g')" "/node_modules/.bin/$(basename $f)"; done \ | ||
&& rm -rf node_modules | ||
|
||
ENV PATH="/node_modules/.bin:${PATH}" | ||
|
||
ENTRYPOINT ["yarn", "run"] | ||
|
||
CMD ["fix"] |
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,16 @@ | ||
version: "3" | ||
services: | ||
frontend: | ||
build: | ||
dockerfile: ../lint/Dockerfile.frontend | ||
context: ../${FRONTEND_DIR} | ||
command: "fix" | ||
volumes: | ||
- "../${FRONTEND_DIR}:/code" | ||
backend: | ||
build: | ||
dockerfile: ../lint/Dockerfile.backend | ||
context: ../${BACKEND_DIR} | ||
command: "fix" | ||
volumes: | ||
- "../${BACKEND_DIR}:/code" |