Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ Finally, issue the following commands to download JSON files about each project

A file called `data.tsv` should result, representing the data you just downloaded. Again, it should look something like the tsv file described above or the one at http://dx.doi.org/10.7910/DVN/TJCLKP .

### Running with Docker

If you don't want to install Go locally, you can use [Docker](https://www.docker.com) instead:

make download
make parse

If you have any trouble with the commands above or have any ideas for this project, please open a GitHub issue. Pull request are also very welcome!

## Keeping github.tsv sorted
Expand Down
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang:1.23-alpine AS build-download
WORKDIR /build
COPY download.go .
RUN go mod init osah && go build -o download .

FROM golang:1.23-alpine AS build-parse
WORKDIR /build
COPY parse.go .
RUN go mod init osah && go build -o parse .

FROM alpine:3.20 AS download
COPY --from=build-download /build/download /usr/local/bin/download
WORKDIR /data
ENTRYPOINT ["download"]

FROM alpine:3.20 AS parse
COPY --from=build-parse /build/parse /usr/local/bin/parse
WORKDIR /data
ENTRYPOINT ["parse"]
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
download:
docker build --target download -t osah-download .
docker run --rm -v "$(PWD):/data" osah-download

parse:
docker build --target parse -t osah-parse .
docker run --rm -v "$(PWD):/data" osah-parse
Loading