Add Dockerfile for running test #1736
No reviewers
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-04#1736
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "dockertest"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
./run-tests-in-docker.sh
to run travis tests locallyI'm checking the
./run-tests-in-docker.sh
. I hope it downloads less than 6 Gb (: Did you try to doRUN apt-get update
once, e.g.:Also I'm not sure about
python-pycryptopp
, where it's used.I'll test the changes you asked about.
apt-get seems to install an old python-psutil: https://buildbot.bitmessage.org/#/builders/22/builds/6/steps/7/logs/stdio
Maybe use useradd, not adduser? It produces this:
@ -0,0 +51,4 @@
# copy sources
COPY . /home/builder/src
RUN chown -R builder.builder /home/builder/src
Strange.
man chown
sayschown [OPTION]... [OWNER][:[GROUP]] FILE...
Another apt update ): https://git.bitmessage.org/Bitmessage/buildbot-scripts/src/branch/master/travis2bash.sh#L69
It works!
I can add some conditional for skipping redundancies, I can't just remove them because in some jobs / situations they are needed, the same
travis2bash.sh
script is used in VMs, in docker, inside and outside of buildbot, and the environments differ.@ -0,0 +51,4 @@
# copy sources
COPY . /home/builder/src
RUN chown -R builder.builder /home/builder/src
I think OWNER.GROUP is a GNU non-POSIX feature, maybe it doesn't work on BSD, I've been using it on linux since the '90s. But I can change it, no big deal.
apt update
in total nowapt install
~once~ twice insideDockerfile.travis
useradd
instead ofadduser
python-pycryptopp