Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit 6dfa59b

Browse files
committed
Add partisan makefile.
1 parent 9f76674 commit 6dfa59b

6 files changed

+37
-7
lines changed

Dockerfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ RUN cd /tmp && \
66
apt-get update && \
77
apt-get -y install wget build-essential make gcc ruby-dev git expect gnuplot
88

9-
CMD cd /opt && \
10-
(git clone https://github.com/lasp-lang/lasp.git -b $LASP_BRANCH && cd lasp && make exp-stage); \
11-
cd lasp && /opt/lasp/_build/exp/rel/lasp/bin/env
9+
RUN cd /opt && \
10+
(git clone https://github.com/lasp-lang/lasp.git -b $LASP_BRANCH && cd lasp && make exp-stage);
11+
12+
CMD cd /opt/lasp && \
13+
/opt/lasp/_build/exp/rel/lasp/bin/env

Dockerfiles/crdt-tutorial

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ RUN cd /tmp && \
66
apt-get update && \
77
apt-get -y install wget build-essential make gcc ruby-dev git expect gnuplot tmux
88

9-
CMD cd /opt && \
9+
RUN cd /opt && \
1010
git clone https://github.com/lasp-lang/lasp.git && \
1111
cd lasp && \
12-
make stage && \
13-
cd /opt/lasp && \
12+
make stage
13+
14+
CMD cd /opt/lasp && \
1415
make crdt-tutorial

Dockerfiles/partisan-tutorial

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM lasplang/erlang:19.3
2+
3+
MAINTAINER Christopher S. Meiklejohn <[email protected]>
4+
5+
RUN cd /tmp && \
6+
apt-get update && \
7+
apt-get -y install wget build-essential make gcc ruby-dev git expect gnuplot tmux
8+
9+
RUN cd /opt && \
10+
git clone https://github.com/lasp-lang/lasp.git && \
11+
cd lasp && \
12+
make stage
13+
14+
CMD cd /opt/lasp && \
15+
make partisan-tutorial

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ logs:
155155
DIALYZER_APPS = kernel stdlib erts sasl eunit syntax_tools compiler crypto
156156

157157
crdt-tutorial: stage
158-
tmux -f tmux.conf kill-server; tmux -f tmux.conf start-server; tmux -f tmux.conf attach -d -t lasp
158+
tmux -f tmux.conf kill-server; tmux -f crdt-tmux.conf start-server; tmux -f crdt-tmux.conf attach -d -t lasp
159+
160+
partisan-tutorial: stage
161+
tmux -f tmux.conf kill-server; tmux -f partisan-tmux.conf start-server; tmux -f partisan-tmux.conf attach -d -t lasp
159162

160163
include tools.mk

crdt-tmux.conf

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set -g default-terminal "screen-256color"
2+
3+
new -s lasp -n lasp "sleep 1; TUTORIAL=true [email protected] _build/default/rel/lasp/bin/ienv"
4+
split-window "sleep 2; TUTORIAL=true [email protected] _build/default/rel/lasp/bin/ienv"

partisan-tmux.conf

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set -g default-terminal "screen-256color"
2+
3+
new -s lasp -n lasp "sleep 1; TUTORIAL=true [email protected] _build/default/rel/lasp/bin/ienv"
4+
split-window "sleep 2; TUTORIAL=true [email protected] _build/default/rel/lasp/bin/ienv"
5+
split-window "sleep 3; TUTORIAL=true [email protected] _build/default/rel/lasp/bin/ienv"

0 commit comments

Comments
 (0)