- Notifications
You must be signed in to change notification settings - Fork35
[CI] A run of all tests (local, remote) on Alpine Linux [PY3, PG17] is added#210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
demonolock merged 4 commits intopostgrespro:masterfromdmitry-lipetsk:D20250311_001--alpineMar 11, 2025
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
4 commits Select commitHold shift + click to select a range
a9389f8
Dockerfile to run all tests on Alpine Linux
dmitry-lipetskdbaa8cf
A run of all the tests on Alpine Linux [PY3, PG17] is added
dmitry-lipetsk72b3ac0
[CI] The run of [STD, PY3, PG17] is removed
dmitry-lipetsk19ab036
Test platform "alpine" was renamed with "std.all"
dmitry-lipetskFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletion.travis.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletionsDockerfile--std.all.tmpl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
FROM postgres:${PG_VERSION}-alpine | ||
ENV PYTHON=python${PYTHON_VERSION} | ||
RUN if [ "${PYTHON_VERSION}" = "2" ] ; then \ | ||
apk add --no-cache curl python2 python2-dev build-base musl-dev \ | ||
linux-headers py-virtualenv py-pip; \ | ||
fi | ||
RUN if [ "${PYTHON_VERSION}" = "3" ] ; then \ | ||
apk add --no-cache curl python3 python3-dev build-base musl-dev \ | ||
linux-headers py-virtualenv; \ | ||
fi | ||
#RUN apk add --no-cache mc | ||
# Full version of "ps" command | ||
RUN apk add --no-cache procps | ||
RUN apk add --no-cache openssh | ||
RUN apk add --no-cache sudo | ||
ENV LANG=C.UTF-8 | ||
RUN addgroup -S sudo | ||
RUN adduser postgres sudo | ||
EXPOSE 22 | ||
RUN ssh-keygen -A | ||
ADD . /pg/testgres | ||
WORKDIR /pg/testgres | ||
RUN chown -R postgres:postgres /pg | ||
# It allows to use sudo without password | ||
RUN sh -c "echo \"postgres ALL=(ALL:ALL) NOPASSWD:ALL\"">>/etc/sudoers | ||
# THIS CMD IS NEEDED TO CONNECT THROUGH SSH WITHOUT PASSWORD | ||
RUN sh -c "echo "postgres:*" | chpasswd -e" | ||
USER postgres | ||
# THIS CMD IS NEEDED TO CONNECT THROUGH SSH WITHOUT PASSWORD | ||
RUN chmod 700 ~/ | ||
RUN mkdir -p ~/.ssh | ||
#RUN chmod 700 ~/.ssh | ||
#ENTRYPOINT PYTHON_VERSION=${PYTHON_VERSION} bash run_tests.sh | ||
ENTRYPOINT sh -c " \ | ||
set -eux; \ | ||
echo HELLO FROM ENTRYPOINT; \ | ||
echo HOME DIR IS [`realpath ~/`]; \ | ||
ssh-keygen -t rsa -f ~/.ssh/id_rsa -q -N ''; \ | ||
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys; \ | ||
chmod 600 ~/.ssh/authorized_keys; \ | ||
ls -la ~/.ssh/; \ | ||
sudo /usr/sbin/sshd; \ | ||
ssh-keyscan -H localhost >> ~/.ssh/known_hosts; \ | ||
ssh-keyscan -H 127.0.0.1 >> ~/.ssh/known_hosts; \ | ||
TEST_FILTER=\"\" PYTHON_VERSION=${PYTHON_VERSION} bash run_tests.sh;" |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.