use status-im/Nim in docker image

This commit is contained in:
Jacek Sieka 2018-08-20 12:14:33 -06:00
parent 212bf41af0
commit b0aa1609e5
No known key found for this signature in database
GPG Key ID: 6299FEB3EB6FA465
2 changed files with 6 additions and 7 deletions

View File

@ -2,7 +2,9 @@
# Introduction # Introduction
This is a helper repo for auto-building a docker image with the latest [Nim](https://github.com/nim-lang/Nim) development version along with Status patches. To set up [Travis CI](https://travis-ci.org) for your project by using this image, copy the following lines to your `.travis.yml` file in the root of your repository: This is a helper repo for auto-building a docker image with the [Nim](https://github.com/status-im/Nim) version that status currently uses for building [Nimbus](http://github.com/status-im/nimbus)
To set up [Travis CI](https://travis-ci.org) for your project by using this image, copy the following lines to your `.travis.yml` file in the root of your repository:
```yml ```yml
sudo: required sudo: required
services: services:
@ -16,5 +18,5 @@ script:
Also, make sure that your project is enabled in [Travis CI](https://travis-ci.org). This configuration will run `nimble install -dy && nimble test` in the root of your repository. Also, make sure that your project is enabled in [Travis CI](https://travis-ci.org). This configuration will run `nimble install -dy && nimble test` in the root of your repository.
# Adding Patches # Adding Patches
The docker build script will automatically merge all branches from the
[status-im/nim](https://github.com/status-im/nim) repo, starting with `status-autopatch-`. This build follows the nimbus branch of Nim and will automatically update to any version used there - to add a patch to, simple merge it into the nimbus branch

View File

@ -1,13 +1,10 @@
FROM statusteam/debian-pre-nim FROM statusteam/debian-pre-nim
MAINTAINER Yuriy Glukhov <iurii@status.im> MAINTAINER Yuriy Glukhov <iurii@status.im>
ENV PATH $PATH:/nim/bin:/root/.nimble/bin ENV PATH $PATH:/nim/bin:/root/.nimble/bin
RUN git clone https://github.com/nim-lang/nim.git \ RUN git clone https://github.com/status-im/nim.git \
&& cd nim \ && cd nim \
&& git remote add statusim https://github.com/status-im/nim.git \
&& git fetch statusim \
&& git config --global user.email "you@example.com" \ && git config --global user.email "you@example.com" \
&& git config --global user.name "Your Name" \ && git config --global user.name "Your Name" \
&& for b in $(git branch -a --list 'statusim/status-autopatch-*'); do git merge $b; done \
&& git clone --depth 1 https://github.com/nim-lang/csources.git \ && git clone --depth 1 https://github.com/nim-lang/csources.git \
&& cd csources \ && cd csources \
&& sh build.sh \ && sh build.sh \