use status-im/Nim in docker image
This commit is contained in:
parent
212bf41af0
commit
b0aa1609e5
|
@ -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
|
||||||
|
|
|
@ -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 \
|
||||||
|
|
Loading…
Reference in New Issue