Skip to content
Snippets Groups Projects
Unverified Commit 3ff4f332 authored by Silas Davis's avatar Silas Davis
Browse files

Add dockerfile for circle ci with npm


Signed-off-by: default avatarSilas Davis <silas@monax.io>
parent a74728d2
No related branches found
No related tags found
No related merge requests found
FROM golang:1.10.1-alpine3.7
MAINTAINER Monax <support@monax.io>
ENV DOCKER_VERSION "17.12.1-ce"
# This is the image used by the Circle CI config in this directory pushed to quay.io/monax/bosmarmot:ci
# docker build -t quay.io/monax/burrow:ci -f ./.circleci/Dockerfile .
RUN apk add --update --no-cache nodejs netcat-openbsd git openssh-client make bash gcc g++ jq curl
# get docker client
RUN curl -L -o /tmp/docker-$DOCKER_VERSION.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz \
&& tar -xz -C /tmp -f /tmp/docker-$DOCKER_VERSION.tgz \
&& mv /tmp/docker/docker /usr/bin \
&& rm -rf /tmp/docker-$DOCKER_VERSION /tmp/docker
RUN go get github.com/jstemmer/go-junit-report
RUN go get -u github.com/golang/dep/cmd/dep
RUN npm install -g mocha
RUN npm install -g mocha-circleci-reporter
\ No newline at end of file
......@@ -4,14 +4,14 @@
defaults: &defaults
working_directory: /go/src/github.com/hyperledger/burrow
docker:
- image: circleci/golang:1.10.1
- image: quay.io/monax/burrow:ci
tag_filters: &tags_filters
tags:
only: /^v[0-9]+\.[0-9]+\.[0-9]+$/
setup_docker: &setup_docker
version: 17.06.1-ce
version: 17.11.0-ce
# Start of CircleCI 2.0 config
version: 2
......@@ -28,7 +28,6 @@ jobs:
<<: *defaults
steps:
- checkout
- run: sudo apt-get install libgmp3-dev
- run: make test_integration
test_integration_bosmarmot:
......@@ -51,7 +50,7 @@ jobs:
- setup_remote_docker:
<<: *setup_docker
# build docker image and tag the docker image(s) depending on branch/tag
- run: make build_docker_db
- run: make docker_build
- run: docker save quay.io/monax/db > db-images.tar
- persist_to_workspace:
root: .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment