Last active
April 20, 2017 04:55
-
-
Save itn3000/058e1e1ee499dec1b2ffbf9a6515eae3 to your computer and use it in GitHub Desktop.
build gitfs docker file and patch for xenial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ ! -d .git ];then | |
| git clone https://github.com/PressLabs/gitfs.git . | |
| git apply /src/for-xenial.diff | |
| fi | |
| make PREFIX=/dist install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:xenial | |
| # if you need to http proxy | |
| # ENV http_proxy=http://proxy:8080 | |
| # ENV https_proxy=http://proxy:8080 | |
| RUN apt-get update && \ | |
| apt-get install -y \ | |
| build-essential \ | |
| libffi-dev \ | |
| make \ | |
| python3-pip \ | |
| libgit2-dev \ | |
| git && \ | |
| pip3 install virtualenv && \ | |
| mkdir -p /src/gitfs | |
| # for fixing python version (3.4 -> 3.5) | |
| # you can apply this change by 'git apply /src/gitfs' | |
| COPY for-xenial.diff /src/for-xenial.diff | |
| COPY bootstrap.sh /bootstrap.sh | |
| RUN chmod 0755 /bootstrap.sh | |
| VOLUME ["/dist","/src/gitfs"] | |
| WORKDIR /src/gitfs | |
| CMD ["/bootstrap.sh"] | |
| # if you want to get gitfs binary, docker run --rm -v [hostdirectory]:/dist [imagename] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Makefile b/Makefile | |
| index 4055bc7..b1ac068 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -39,7 +39,7 @@ $(VIRTUAL_ENV)/bin/py.test: $(VIRTUAL_ENV)/bin/pip | |
| @touch $@ | |
| $(VIRTUAL_ENV)/bin/pip: | |
| - virtualenv --setuptools $(VIRTUAL_ENV) -ppython3.4 | |
| + virtualenv --setuptools $(VIRTUAL_ENV) -ppython3.5 | |
| virtualenv: $(VIRTUAL_ENV)/bin/pip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment