Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖
Working from home

Tset Noitamotua Tset-Noitamotua

🤖
Working from home
  • Secret Agency
  • Germany
View GitHub Profile
View README.md

My Docker Notes

Just a collection of my personal notes about Docker usage.

Override docker entrypoint

PROBLEM: Sometime u would like to override the entrypoint of a Docker container. For example if u try to run robod0ck by just calling docker run robod0ck/robod0ck u will most likely get the error [ ERROR ] Expected at least 1 argument, got 0. That's because the entrypoint of the container is the Robot Framework command robot which is assuming at least one arg e.g. a .robot file or a folder with test cases or some command line option like --help, --version etc.

@Tset-Noitamotua
Tset-Noitamotua / dockerfile
Created Jan 28, 2019
add chromedriver to docker container #robotframework #chrome #docker
View dockerfile
# add this to your Dockerfile
# by dm08 from Robot Framework Slack channel
apt-get -y install google-chrome-stable && \
wget -q http://chromedriver.storage.googleapis.com/LATEST_RELEASE && \
echo $(cat LATEST_RELEASE) && \
chromedriver_version=$(cat LATEST_RELEASE) && \
wget -N http://chromedriver.storage.googleapis.com/$chromedriver_version/chromedriver_linux64.zip && \
unzip chromedriver_linux64.zip && \
@Tset-Noitamotua
Tset-Noitamotua / data-driven-rest-api-test-2_Robot-Framework.robot
Last active Jan 3, 2021
Data Driven REST API Test Examples with Robot Framework
View data-driven-rest-api-test-2_Robot-Framework.robot
#! Robot Framework
*** Settings ***
Metadata Version 0.1.0
Metadata Author *Tset Noitamotua*
Metadata Created 2019.01.23
Documentation Demo - Data Driven Test with RF
...
@Tset-Noitamotua
Tset-Noitamotua / powerline_linux_bash_git_config.md
Last active Nov 26, 2020
How to install and configure Powerline on Linux (Deepin Linux 15.7, Debian / Ubuntu) with git status?
View powerline_linux_bash_git_config.md

(Dead) simple installation / configuration of Powerline (powerline-status)

#Linux #bash #git #Powerline

If you ever have to reinstall Powerline on another machine this are the easy steps to follow to give you a nice looking prompt with git status and branch name in your bash terminal. Steps where done on Deepin Linux 15.7 but should also work on Debian / Ubuntu.

image - Deepin Linux Bash Powerline Git Status

TL;DR

@Tset-Noitamotua
Tset-Noitamotua / powerline_linux_config.md
Created Jan 12, 2019
install and configure powerline on linux for use with git
View powerline_linux_config.md
@Tset-Noitamotua
Tset-Noitamotua / cucumber_to_robotframework.md
Last active Sep 24, 2020
HOW TO translate Cucumber test case into Robot Framework (RF) test case
View cucumber_to_robotframework.md

Cucumber test with examples table

Scenario Outline: eating cucumbers
  Given there are <start> cucumbers
  When I eat <eat> cucumbers
  Then I should have <left> cucumbers

  Examples:
    | start | eat | left |
    |  12   |  5  |  7   |
View ROBOT-DOCKER.md

@Raghavendra Balgi thanks for the steps for apache2. The reason I asked was because on Windows there is a problem with shared folders. It is not easy to configure epecially on a corporate host. So I needed an alternative way so check robot output files. I think the apache aproach might be a bit difficult (at least for beginners), too.

I have found two (imho easier) alternatives how to get a look on robots output files:

NOTE: I did all that on Windows 10

1. ALTERNATIVE:

@Tset-Noitamotua
Tset-Noitamotua / README.md
Last active Jun 30, 2017
SetUp & Run ReportPortal.io on Docker-CE
View README.md

HOW-TO run ReportPortal.io on Docker-CE

Follow below steps if you like to have ReportPortal running on Ubuntu Zesty (17.04) with the latests Docker-CE version 17.05 and Docker-Compose 1.14

INSTALATION

@Tset-Noitamotua
Tset-Noitamotua / README.md
Created Jun 27, 2017
Collection of usefull shit for S2L
View README.md

S2L Custom Keywords

Collection of usefull stuff (mainly custom keywords) for RF S2L

@Tset-Noitamotua
Tset-Noitamotua / README.md
Last active Mar 26, 2020
HOW-TO enable MarkDown support in RobotFramework
View README.md

HOW-TO enable MarkDown support in RobotFramework

You want to execute robot test which are inside fenced code blocks of a markdown file (.md) like any normal robot test? Follow the steps below then you can run your tests as simple as robot your_test_suite.md with all robot command line execution options.

This will add support for .md files to RF

  1. Clone [RobotFramework][4] repository
  2. Save the code below as 'mdreader.py' in parsing folder of your local clone. It's based on [restreader.py][1]
  3. Add this from .mdreader import MarkDownReader [here][2] to your local clone.