mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 03:16:01 +00:00
workflow fix
This commit is contained in:
2
.github/workflows/build-test-containers.yaml
vendored
2
.github/workflows/build-test-containers.yaml
vendored
@@ -9,7 +9,7 @@ name: Build test containers
|
|||||||
- develop
|
- develop
|
||||||
- feature/**
|
- feature/**
|
||||||
paths:
|
paths:
|
||||||
- e2e-tests/containers
|
- e2e-tests/containers/**
|
||||||
jobs:
|
jobs:
|
||||||
build-docker-ssh:
|
build-docker-ssh:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
4
.github/workflows/run-tests.yaml
vendored
4
.github/workflows/run-tests.yaml
vendored
@@ -90,5 +90,5 @@ jobs:
|
|||||||
image: 'gvenzl/oracle-xe:21-slim'
|
image: 'gvenzl/oracle-xe:21-slim'
|
||||||
env:
|
env:
|
||||||
ORACLE_PASSWORD: Pwd2020Db
|
ORACLE_PASSWORD: Pwd2020Db
|
||||||
mysql-ssh:
|
mysql-ssh-login:
|
||||||
image: 'ghcr.io/dbgate/mysql-ssh:latest'
|
image: 'ghcr.io/dbgate/mysql-ssh-login:latest'
|
||||||
|
|||||||
@@ -2,13 +2,18 @@ FROM ubuntu:22.04
|
|||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y openssh-server mysql-server && \
|
apt-get install -y openssh-server mysql-server && \
|
||||||
apt-get clean && \
|
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
RUN mkdir /var/run/sshd
|
RUN mkdir /var/run/sshd
|
||||||
|
|
||||||
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config && \
|
||||||
RUN echo 'root:root' | chpasswd
|
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin without-password/' /etc/ssh/sshd_config
|
||||||
|
|
||||||
|
RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh
|
||||||
|
|
||||||
|
COPY mykey.pub /root/.ssh/authorized_keys
|
||||||
|
|
||||||
|
RUN chmod 600 /root/.ssh/authorized_keys
|
||||||
|
|
||||||
RUN service mysql start && \
|
RUN service mysql start && \
|
||||||
mysql -uroot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; FLUSH PRIVILEGES;" && \
|
mysql -uroot -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; FLUSH PRIVILEGES;" && \
|
||||||
@@ -17,7 +22,6 @@ RUN service mysql start && \
|
|||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
|
|
||||||
COPY start.sh /start.sh
|
COPY start.sh /start.sh
|
||||||
|
|
||||||
RUN chmod +x /start.sh
|
RUN chmod +x /start.sh
|
||||||
|
|
||||||
CMD ["/start.sh"]
|
CMD ["/start.sh"]
|
||||||
@@ -7,7 +7,7 @@ on:
|
|||||||
- develop
|
- develop
|
||||||
- 'feature/**'
|
- 'feature/**'
|
||||||
paths:
|
paths:
|
||||||
- e2e-tests/containers
|
- e2e-tests/containers/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-docker-ssh:
|
build-docker-ssh:
|
||||||
|
|||||||
@@ -111,5 +111,5 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
ORACLE_PASSWORD: Pwd2020Db
|
ORACLE_PASSWORD: Pwd2020Db
|
||||||
|
|
||||||
mysql-ssh:
|
mysql-ssh-login:
|
||||||
image: ghcr.io/dbgate/mysql-ssh:latest
|
image: ghcr.io/dbgate/mysql-ssh-login:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user