Skip to content
Permalink
Browse files

Publish 0.4 docker relay (#177)

* 0.4.0-beta0

* update dev relay docker

update the docker builder so that `npm run gsn-relay-with-ganache` will
work again..

* 0.4.0-beta1
  • Loading branch information...
drortirosh authored and shahafn committed Jul 12, 2019
1 parent 2f31b0d commit f12756fe044c4c81c21c7a12d4afb40eaed3e7e7
Showing with 1,037 additions and 88 deletions.
  1. +4 −5 build_server_docker.sh
  2. +1 −1 package.json
  3. +1 −1 scripts/gsn-dock-relay
  4. +8 −14 serverdock/Dockerfile
  5. +1 −1 serverdock/truffle.js
  6. +1,022 −66 yarn.lock
@@ -2,20 +2,19 @@

rm -rf ./build

mkdir -p build/dock-node_modules
cp node_modules/openzeppelin-solidity build/dock-node_modules -a
cp node_modules/@0x build/dock-node_modules -a
./dock/run.sh yarn
./dock/run.sh sh -c 'make build-server'

serverbuild=./build/serverdock

rm -rf $serverbuild
mkdir $serverbuild

cp ./build/dock-builD/server/bin/RelayHttpServer $serverbuild
cp ./serverdock/package.json $serverbuild
cp ./serverdock/start-relay.sh $serverbuild
cp ./serverdock/start-relay-with-ganache.sh $serverbuild
cp ./scripts/fundrelay.js $serverbuild
cp ./src/js/relayclient/IRelayHub.js $serverbuild
tar cf - ./scripts/fundrelay.js ./src/js/relayclient/IRelayHub.js ./contracts | tar xvf - -C $serverbuild
cp ./serverdock/truffle.js $serverbuild
cp -a ./contracts $serverbuild
cp -a ./serverdock/migrations $serverbuild
@@ -1,5 +1,5 @@
{
"version": "0.4.0",
"version": "0.4.0-beta1",
"description": "Tabookey Gasless Relay Framework",
"name": "tabookey-gasless",
"license": "MIT",
@@ -15,5 +15,5 @@ else
PORT=
fi

docker run -t --name gsn-dock --rm -p 8090:8090 $PORT tabookey/gsn-dev-server:v0.3.1 $ARG
docker run -t --name gsn-dock --rm -p 8090:8090 $PORT tabookey/gsn-dev-server:v0.4.0 $ARG
exited=1
@@ -4,24 +4,18 @@ MAINTAINER "dror@tabookey.com"
RUN apt-get update && \
apt-get install -y git nodejs npm

RUN npm install -g n
RUN npm install -g n yarn
RUN n stable

RUN npm install -g ganache-cli@6.4.3 truffle
RUN npm install truffle-hdwallet-provider
RUN echo '{}' > package.json
RUN npm install web3@1.0.0-beta.37
RUN npm install openzeppelin-solidity@2.1.2
RUN npm install @0x/contracts-utils@3.1.1
#not sure why this breaks installing other packages..
RUN rm -rf node_modules/websocket
RUN npm install openzeppelin-solidity@2.1.2 @0x/contracts-utils@3.1.1


ADD ./RelayHttpServer /RelayHttpServer
ADD ./start-relay.sh /start-relay.sh
ADD ./fundrelay.js /scripts/fundrelay.js
ADD ./truffle.js /truffle.js
ADD ./contracts /contracts
ADD ./IRelayHub.js ./src/js/relayclient/IRelayHub.js
ADD ./migrations /migrations
ADD ./version /version
ADD ./start-relay-with-ganache.sh /start-relay-with-ganache.sh
ADD . .
ENV PATH=./node_modules/.bin:$PATH
RUN truffle compile

CMD "/start-relay.sh"
@@ -20,7 +20,7 @@ module.exports = {
},
compilers: {
solc: {
version: "0.5.5",
version: "0.5.10",
}
}

0 comments on commit f12756f

Please sign in to comment.
You can’t perform that action at this time.