debian-stretch-jenkins, osmo-gsm-tester: add osmo-ci
Clone osmo-ci.git, and install all files from scripts/* to /usr/local/bin. Together with osmo-ci I45bd7ea56849dab839a98cfd52806f7cd288094e, this will make overwriting PATH obsolete. Related: OS#4911 Change-Id: I0820f13cd740f7d4a8999d279cef6ae293a67d81
This commit is contained in:
parent
663c77203b
commit
8f2210f528
|
@ -148,6 +148,14 @@ RUN git clone https://git.osmocom.org/python/osmo-python-tests osmo-python-tests
|
|||
cd osmo-python-tests3 && \
|
||||
python3 setup.py clean build install
|
||||
|
||||
# Install osmo-ci.git/scripts to /usr/local/bin
|
||||
ADD http://git.osmocom.org/osmo-ci/patch /tmp/osmo-ci-commit
|
||||
RUN git clone https://git.osmocom.org/osmo-ci osmo-ci && \
|
||||
cp -v $(find osmo-ci/scripts \
|
||||
-maxdepth 1 \
|
||||
-type f ) \
|
||||
/usr/local/bin
|
||||
|
||||
# Set a UTF-8 locale
|
||||
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
|
||||
dpkg-reconfigure --frontend=noninteractive locales && \
|
||||
|
|
|
@ -135,6 +135,14 @@ RUN cd osmo-gsm-tester && \
|
|||
(git symbolic-ref -q HEAD && git reset --hard origin/$OSMO_GSM_TESTER_BRANCH || exit 1); \
|
||||
git rev-parse --abbrev-ref HEAD && git rev-parse HEAD
|
||||
|
||||
# Install osmo-ci.git/scripts to /usr/local/bin
|
||||
ADD http://git.osmocom.org/osmo-ci/patch /tmp/osmo-ci-commit
|
||||
RUN git clone https://git.osmocom.org/osmo-ci osmo-ci && \
|
||||
cp -v $(find osmo-ci/scripts \
|
||||
-maxdepth 1 \
|
||||
-type f ) \
|
||||
/usr/local/bin
|
||||
|
||||
# Copy several scripts and permission for osmo-gsm-tester:
|
||||
RUN mkdir -p /usr/local/bin/ && cp osmo-gsm-tester/utils/bin/* /usr/local/bin/
|
||||
RUN mkdir -p /etc/sudoers.d/ && cp osmo-gsm-tester/utils/sudoers.d/* /etc/sudoers.d/
|
||||
|
|
Loading…
Reference in New Issue