Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Commit

Permalink
Merge pull request #8 from dappnode/v0.1.3
Browse files Browse the repository at this point in the history
v0.1.3
  • Loading branch information
eduadiez committed Jan 23, 2019
2 parents c0aae6b + 87dfd5d commit 56b4be9
Show file tree
Hide file tree
Showing 19 changed files with 1,462 additions and 634 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
testbuild
test_build
node_modules
build_*
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,26 @@ dist: trusty
sudo: required

stages:
- test
- name: build-test
if: tag != "release"
- name: release
if: tag = "release"

jobs:
include:
- stage: test
node_js:
- "8.9.4"
cache:
directories:
- build/src/node_modules
install:
# This is a dockerized application, the node app is in /build/src
- cd ./build/src
- npm install
script:
- npm test
# Test that it builds correctly
###############################
- stage: build-test
Expand Down
1 change: 0 additions & 1 deletion build/.gitignore

This file was deleted.

6 changes: 3 additions & 3 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ FROM node:8.9.4-alpine as build
WORKDIR /usr/src/app

RUN apk update && \
apk add git python make g++ && \
apk add git python make g++ curl && \
rm -rf /var/cache/apk/*

COPY src .

RUN npm install --production
RUN npm install --production --unsafe-perm

# This results in a single layer image
FROM alpine
Expand Down Expand Up @@ -51,4 +51,4 @@ RUN apk add --no-cache libstdc++ && \
COPY --from=build /usr/local/bin/node /usr/local/bin/node
COPY --from=build /usr/src/app /usr/src/app

ENTRYPOINT node index.js
ENTRYPOINT node /usr/src/app/src/index.js
57 changes: 0 additions & 57 deletions build/src/404.html

This file was deleted.

98 changes: 0 additions & 98 deletions build/src/ens.js

This file was deleted.

Loading

0 comments on commit 56b4be9

Please sign in to comment.