Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel393-docker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
elphel393-docker
Commits
8c697664
Commit
8c697664
authored
Mar 01, 2026
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Stage-1 Docker bootstrap and add persistent build log
parent
828ee037
Pipeline
#3693
canceled with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
Dockerfile
docker/Dockerfile
+1
-0
docker-compose.yml
docker/docker-compose.yml
+3
-2
build_stage1.sh
scripts/build_stage1.sh
+17
-0
No files found.
docker/Dockerfile
View file @
8c697664
...
@@ -13,6 +13,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
...
@@ -13,6 +13,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
locales
\
locales
\
tzdata
\
tzdata
\
sudo
\
sudo
\
openssh-client
\
git
\
git
\
rsync
\
rsync
\
gawk
\
gawk
\
...
...
docker/docker-compose.yml
View file @
8c697664
...
@@ -18,6 +18,7 @@ services:
...
@@ -18,6 +18,7 @@ services:
stdin_open
:
true
stdin_open
:
true
volumes
:
volumes
:
-
../workspace:/work/elphel393
-
../workspace:/work/elphel393
-
../cache/downloads:/
work/elphel393/poky/build
/downloads
-
../cache/downloads:/
cache
/downloads
-
../cache/sstate-cache:/
work/elphel393/poky/build
/sstate-cache
-
../cache/sstate-cache:/
cache
/sstate-cache
-
../cache/ccache:/home/${USER_NAME:-builder}/.ccache
-
../cache/ccache:/home/${USER_NAME:-builder}/.ccache
-
${HOME}/.ssh:/home/${USER_NAME:-builder}/.ssh
scripts/build_stage1.sh
View file @
8c697664
...
@@ -6,6 +6,16 @@ REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
...
@@ -6,6 +6,16 @@ REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
WORKSPACE
=
"
${
REPO_ROOT
}
/workspace"
WORKSPACE
=
"
${
REPO_ROOT
}
/workspace"
REF_DIR
=
"
${
REPO_ROOT
}
/docs/reference/107"
REF_DIR
=
"
${
REPO_ROOT
}
/docs/reference/107"
USE_107_LOCALCONF
=
"
${
USE_107_LOCALCONF
:-
1
}
"
USE_107_LOCALCONF
=
"
${
USE_107_LOCALCONF
:-
1
}
"
LOG_DIR
=
"
${
REPO_ROOT
}
/logs"
LOG_TS
=
"
$(
date
+%Y%m%d_%H%M%S
)
"
LOG_FILE
=
"
${
LOG_DIR
}
/build_stage1_
${
LOG_TS
}
.log"
LATEST_LOG
=
"
${
LOG_DIR
}
/build_stage1_latest.log"
mkdir
-p
"
${
LOG_DIR
}
"
ln
-sfn
"
$(
basename
"
${
LOG_FILE
}
"
)
"
"
${
LATEST_LOG
}
"
exec
>
>(
tee
-a
"
${
LOG_FILE
}
"
)
2>&1
echo
"Stage1 log:
${
LOG_FILE
}
"
echo
"Latest log symlink:
${
LATEST_LOG
}
"
copy_localconf_107
()
{
copy_localconf_107
()
{
local
src
=
"
${
REF_DIR
}
/local.conf"
local
src
=
"
${
REF_DIR
}
/local.conf"
...
@@ -43,6 +53,11 @@ TARGETS_STR="${TARGETS[*]}"
...
@@ -43,6 +53,11 @@ TARGETS_STR="${TARGETS[*]}"
"
${
SCRIPT_DIR
}
/run_docker.sh"
bash
-lc
"
"
${
SCRIPT_DIR
}
/run_docker.sh"
bash
-lc
"
set -e
set -e
cd /work/elphel393
cd /work/elphel393
mkdir -p
\"\$
{HOME}/.ssh
\"
chmod 700
\"\$
{HOME}/.ssh
\"
touch
\"\$
{HOME}/.ssh/known_hosts
\"
chmod 600
\"\$
{HOME}/.ssh/known_hosts
\"
ssh-keyscan -H git.elphel.com >>
\"\$
{HOME}/.ssh/known_hosts
\"
2>/dev/null || true
./setup.py
./setup.py
"
"
...
@@ -58,5 +73,7 @@ cd /work/elphel393/poky
...
@@ -58,5 +73,7 @@ cd /work/elphel393/poky
set +u
set +u
. ./oe-init-build-env build
. ./oe-init-build-env build
set -u
set -u
export DL_DIR=/cache/downloads
export SSTATE_DIR=/cache/sstate-cache
bitbake
${
TARGETS_STR
}
bitbake
${
TARGETS_STR
}
"
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment