Skip to content
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

Add docker build #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ The script has a few options described below:

<small>*Note: building the win32 cursors from source is not currently supported, but it is on the roadmap.</small>

### Using docker

You can build cursors inside docker, if you don't have or don't want to install dependencies. Only thing you need to have is docker.

```
./build-docker.sh
```

## Pre-built binaries

Pre-built binaries are available for download at [pling.com](https://www.pling.com/p/1148692) :heart:
Expand Down
20 changes: 20 additions & 0 deletions build-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

docker build -t capitaine-cursors-build -<<EOF
FROM ubuntu

WORKDIR /app

ENV DEBIAN_FRONTEND=noninteractive
RUN mkdir _build; \
apt-get update; \
apt-get install -y --no-install-recommends inkscape x11-apps bc; \
apt-get clean -y; \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
EOF

docker run --rm -it \
--user "$(id -u):$(id -g)" \
--volume "${PWD}:/app" \
--entrypoint="./build.sh" \
capitaine-cursors-build "$@"