Skip to content

Instantly share code, notes, and snippets.

@timjb
Last active August 9, 2016 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timjb/69ad6187448d63f7d88206e35dcf62e6 to your computer and use it in GitHub Desktop.
Save timjb/69ad6187448d63f7d88206e35dcf62e6 to your computer and use it in GitHub Desktop.
Pijul Docker Container
pijul.org
sanakirja

Building the Docker image

$ ./setup.sh
$ docker build .
FROM ubuntu:latest
MAINTAINER Tim Baumann <tim@timbaumann.info>
# sudo
RUN apt-get update && apt-get install -y sudo
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
# Add Pijul sources
RUN mkdir -p /opt/pijul
ADD pijul.org /opt/pijul/pijul.org
ADD sanakirja /opt/pijul/sanakirja
RUN ln -s /opt/pijul/sanakirja /opt/pijul/pijul.org/libpijul/src/sanakirja
RUN ln -s /opt/pijul/pijul.org/libpijul /opt/pijul/pijul.org/pijul/src/libpijul
# Install Rust
RUN apt-get update && apt-get install -y curl gdb clang
RUN curl -sSf https://static.rust-lang.org/rustup.sh | sh
# Install pijul
RUN apt-get update && apt-get install -y libssl-dev libssh-dev
RUN cd /opt/pijul/pijul.org/pijul && cargo install
#!/bin/bash
darcs clone https://pijul.org pijul.org
darcs clone http://pijul.org/sanakirja sanakirja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment