-
Notifications
You must be signed in to change notification settings - Fork 213
Draft docker deploy for OBO site #1805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
matentzn
wants to merge
2
commits into
master
Choose a base branch
from
issue557
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM jekyll/jekyll:3.5.2 | ||
|
||
LABEL maintainer OBOFoundry<obo-discuss@googlegroups.com> | ||
|
||
ENV PYTHONUNBUFFERED=1 | ||
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python | ||
RUN python3 -m ensurepip | ||
RUN pip3 install --no-cache --upgrade pip setuptools | ||
COPY requirements.txt requirements.txt | ||
RUN apk add python3-dev | ||
RUN pip3 install --no-cache -r requirements.txt | ||
#RUN pip3 install --no-cache --upgrade pip setuptools frontmatter | ||
|
||
RUN mkdir -p /tools/ | ||
ENV PATH "/tools/apache-jena/bin:/tools/sparqlprog/bin:$PATH" | ||
# Install Jena. | ||
RUN wget -nv http://archive.apache.org/dist/jena/binaries/apache-jena-3.12.0.tar.gz -O- | tar xzC /tools && \ | ||
mv /tools/apache-jena-3.12.0 /tools/apache-jena | ||
|
||
RUN apk --no-cache add openjdk11 --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community | ||
|
||
|
||
CMD make all && jekyll serve |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -243,3 +243,32 @@ jenkins-output.txt: | |
|
||
reports/%.csv: registry/ontologies.ttl sparql/%.sparql | ||
arq --data $< --query sparql/$*.sparql --results csv > $@.tmp && mv $@.tmp $@ | ||
|
||
################################################ | ||
#### Commands for building the Docker image #### | ||
################################################ | ||
VERSION = "0.0.1" | ||
IM=obolibrary/site | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cryptic variable name |
||
docker-build-no-cache: | ||
@docker build --no-cache -t $(IM):$(VERSION) . \ | ||
&& docker tag $(IM):$(VERSION) $(IM):latest | ||
docker-build: | ||
@docker build -t $(IM):$(VERSION) . \ | ||
&& docker tag $(IM):$(VERSION) $(IM):latest | ||
docker-build-use-cache-dev: | ||
@docker build -t $(DEV):$(VERSION) . \ | ||
&& docker tag $(DEV):$(VERSION) $(DEV):latest | ||
docker-clean: | ||
docker kill $(IM) || echo not running ; | ||
docker rm $(IM) || echo not made | ||
docker-publish-no-build: | ||
@docker push $(IM):$(VERSION) \ | ||
&& docker push $(IM):latest | ||
|
||
docker-publish-dev-no-build: | ||
@docker push $(DEV):$(VERSION) \ | ||
&& docker push $(DEV):latest | ||
|
||
docker-publish: docker-build | ||
@docker push $(IM):$(VERSION) \ | ||
&& docker push $(IM):latest |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env sh | ||
docker run -v $PWD/:/srv/jekyll/ -p 4000:4000 --rm -it obolibrary/site |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not very descriptive. Suggetion:
OBOFOUNDRY_IMAGE_VERSION
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not review draft pull requests :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops I didn't look at the flag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you'd hate working on one of my open source projects
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its like looking at someone six pack in progress under their t-shirt on January 10.