-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating cirleci config to add docker to docker hub for remix
- Loading branch information
1 parent
fd35bc4
commit aff5a34
Showing
6 changed files
with
97 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
gist_token = <token> | ||
account_passphrase = <passphrase> | ||
account_password = <password> | ||
gist_token=<token> | ||
account_passphrase=<passphrase> | ||
account_password=<password> |
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,19 @@ | ||
FROM node:10 | ||
# Create Remix user, don't use root! | ||
# RUN yes | adduser --disabled-password remix && mkdir /app | ||
# USER remix | ||
|
||
# #Now do remix stuff | ||
# USER remix | ||
WORKDIR /home/remix | ||
|
||
RUN git clone https://github.com/ethereum/remix-ide.git | ||
RUN git checkout origin remix_live | ||
|
||
WORKDIR /home/remix/remix | ||
RUN npm install | ||
RUN npm run build | ||
|
||
EXPOSE 8080 65520 | ||
|
||
CMD ["npm", "run", "serve"] |
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,20 @@ | ||
# This dockerfile is to build each branch seperately (for dev purpouses) | ||
FROM node:10 | ||
# Create Remix user, don't use root! | ||
# RUN yes | adduser --disabled-password remix && mkdir /app | ||
# USER remix | ||
|
||
# #Now do remix stuff | ||
# USER remix | ||
WORKDIR /home/remix | ||
|
||
COPY ./ ./ | ||
|
||
WORKDIR /home/remix/remix | ||
# npm ci would probably be better | ||
RUN npm install | ||
RUN npm run build | ||
|
||
EXPOSE 8080 65520 | ||
|
||
CMD ["npm", "run", "serve"] |
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,9 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# If not staging and master branch are existing | ||
export TAG="$CIRCLE_BRANCH" | ||
|
||
docker login --username $DOCKER_USER --password $DOCKER_PASS | ||
docker-compose build | ||
docker push remixproject/remix-ide:$TAG |
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,18 @@ | ||
version: "3.7" | ||
x-project-base: | ||
&project-base | ||
restart: always | ||
networks: | ||
- remixide | ||
|
||
networks: | ||
remixide: | ||
|
||
services: | ||
remixide: | ||
<<: *project-base | ||
image: remixproject/remix-ide:$TAG | ||
container_name: remixide-${TAG} | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.dev |