Skip to content

Commit

Permalink
Merge pull request #1352 from spryker-shop/feature/cc-29896/dev-intro…
Browse files Browse the repository at this point in the history
…duce-robot-container

Auto-merge based on green CI result.
  • Loading branch information
spryker-release-bot authored Aug 18, 2023
2 parents 99d9fca + 0ec8ebe commit 1798b2d
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ npm-debug.log
/tests/PyzTest/*/*/_output/*
/tests/PyzTest/*/*/_support/_generated/*

/.robot/results

# propel classes
/src/Propel/Base/*
/src/Propel/Map/*
Expand Down
27 changes: 27 additions & 0 deletions .robot/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM mcr.microsoft.com/playwright:jammy
ENV ROBOT_WORK_DIR /opt/robotframework
RUN mkdir -p ${ROBOT_WORK_DIR}

RUN apt-get update -y && apt install -y \
python3 \
python3-pip \
python3-tk \
make \
&& rm -rf /var/lib/apt/lists/*

RUN pip3 install \
--no-cache-dir \
robotframework \
robotframework-browser \
robotframework-databaselibrary \
robotframework-requests \
PyMySQL \
psycopg2-binary \
robotframework-jsonlibrary \
tk

RUN rfbrowser init

WORKDIR ${ROBOT_WORK_DIR}

CMD exec /bin/bash -c "trap : TERM INT; sleep infinity & wait"
20 changes: 20 additions & 0 deletions .robot/docker-compose.robot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: '3.7'

services:
robot-framework:
build:
context: ./.robot
dockerfile: Dockerfile
networks:
- private
env_file:
- ${DEPLOYMENT_PATH}/env/backoffice_eu.env # depends on application setup
labels:
'spryker.app.name': robot-framework
'spryker.app.type': robot-framework
'spryker.project': ${SPRYKER_DOCKER_PREFIX}:${SPRYKER_DOCKER_TAG}
volumes:
- ./vendor/spryker/robotframework-suite-tests:/opt/robotframework:rw
- ./.robot/results:/opt/robotframework/results:rw
networks:
private:
30 changes: 15 additions & 15 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions deploy.ci.acceptance.mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,7 @@ docker:

mount:
baked:

compose:
yamls:
- .robot/docker-compose.robot.yml
4 changes: 4 additions & 0 deletions deploy.ci.acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,7 @@ docker:

mount:
baked:

compose:
yamls:
- .robot/docker-compose.robot.yml
4 changes: 4 additions & 0 deletions deploy.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,7 @@ docker:
mutagen:
platforms:
- macos

compose:
yamls:
- .robot/docker-compose.robot.yml

0 comments on commit 1798b2d

Please sign in to comment.