-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-commands.txt
81 lines (66 loc) · 2.63 KB
/
build-commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
!! Changing: Label the docker images with $ date + first 7 char of commit id
As one
===
note that |(pipe) binds before &&(chain)
in smsn(-develop)
# PITFALL: do this from smsn or smsn-develop
mvn clean install
# run one of these
cp smsn-server/target/smsn-server-*-standalone.jar \
~/smsn+/docker-smsn
# PITFALL: Make sure there's only one .jar file at destination.
# because the Dockerfile wildcard-copies anything like it
in docker-smsn
# edit the appropriate Dockerfile, if needed
# run one of these
# master
sudo docker build -f Dockerfile -t \
jeffreybbrown/smsn:untested . \
| tee logs/"build-log.`date`.txt"
# develop
sudo docker build -f Dockerfile -t \
jeffreybbrown/smsn-develop:untested . \
| tee logs/"build-log.`date`.txt"
# emacs-too
sudo docker build -f Dockerfile -t \
jeffreybbrown/smsn-emacs-too:untested . \
| tee logs/"build-log.`date`.txt"
# run one of these
# master
ln -s /home/jeff/smsn+/mode/lisp smsn-mode-lisp
# develop
ln -s /home/jeff/smsn+/mode-develop/lisp smsn-mode-lisp
Test
====
Test master or develop
---
Configure emacs:
In emacs.d/elisp/, fiddle with the link (there are scripts for this):
ln -s /home/jeff/smsn+/mode/lisp smsn-mode-lisp
ln -s /home/jeff/smsn+/mode-develop/lisp smsn-mode-lisp
In .emacs
change the port between 8182 and 8183
was done ? toggle between smsn-mode and brain-mode
conditional on Josh saying okay to push it
Run the docker image
Prepare | what differs
Note inconsistent: Elsewhere, master is made explicit; here, develop
Be inconsistent: Use DIFFERENT VCS FOLDERS if running two docker containers
Fiddle the first port between 8182 and 8183.
The Docker port is always 8182.
Run develop branch, on REAL DATA
sudo docker run -it -v /home/jeff/smsn+/kb:/mnt/smsn-data -p 8182:8182 -d -h 127.0.0.1 jeffreybbrown/smsn-develop
Run master branch, from empty
sudo docker run -it -v /home/jeff/smsn+/kb-blank:/mnt/smsn-data -p 8183:8182 -d -h 127.0.0.1 jeffreybbrown/smsn
Test emacs-too
---
sudo docker run -v /home/jeff/smsn+/emacs-too-kb:/mnt/smsn-data jeffreybbrown/smsn-emacs-too:untested
Save
===
!! Changing: Label the docker images with $ date + first 7 char of commit id
After running each, test it. If it works, change the tag (substitute for DATE-EXPRESSION):
-- duh
sudo docker tag smsn:just-built smsn:DATE-EXPRESSION
sudo docker tag smsn:just-built smsn:latest
sudo docker tag smsn-develop:just-built smsn-develop:DATE-EXPRESSION
sudo docker tag smsn-develop:just-built smsn-develop:latest