-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·38 lines (26 loc) · 766 Bytes
/
build.sh
File metadata and controls
executable file
·38 lines (26 loc) · 766 Bytes
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
#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")"
echo "::group::Starting Build"
docker build . -t easyj 1> /dev/null 2>/dev/null
echo "::endgroup::"
imagename="easyj"
name=$(mktemp -u "${imagename}-XXX")
containerId=$(docker run -dit \
--workdir /src \
-v "${PWD}/..":/src \
--name "${name}" \
easyj)
echo "PWD: ${PWD}"
echo "ls"
ls
echo "docker ls"
docker exec "${containerId}" ls
echo "make -C EasyJ4FRC closure compress allapps"
docker exec "${containerId}" make -C EasyJ4FRC closure compress allapps
echo "make -C EasyJ4FRC/apps/robotbuilder setup php"
docker exec "${containerId}" make -C EasyJ4FRC/apps/robotbuilder setup php
# for debugging
# docker exec -it "${containerId}" /bin/bash
docker stop "${containerId}"
docker rm "${containerId}"