Skip to content

Instantly share code, notes, and snippets.

View olg200492's full-sized avatar
πŸ‘©β€πŸ’»
:octocat:

Olga Lapovsky olg200492

πŸ‘©β€πŸ’»
:octocat:
View GitHub Profile
-- option 1
varibles:
ENV: sandbox
stages:
- build
- test
- deploy
...
test-job:
stages:
- build
- test
- deploy
...
test-job:
stage: test
trigger: my-project
...
stages:
- build
- test
- deploy
...
test-job:
stage: test
trigger:
project: my-project
version: "3.7"
services:
mainline:
build:
context: .
dockerfile: nginx.Dockerfile
args:
NGINX_VERSION: 1.17.9-perl
BUILD_FILE: debian.conf
image: app:mainline
---
- name: Log to logger
hosts: server3
become: true
tasks:
- name: log
syslogger:
msg: logger "I just logged a message from Ansible"
ansible vms -i inventory -m copy -a "src=/etc/ansible/test2022.txt dest=/home/student"
-------------------------------------------------------------
ansible vms -i inventory -m group -a "name=usransible" -b
ansible vms -i inventory -m user -a "name=usransible group=usransible createhome=yes password=1qaz2wsx" -b
@olg200492
olg200492 / ubuntu.dockerfile
Created January 31, 2022 17:32
ubuntu dockerfile
FROM ubuntu:latest
RUN mkdir -p /folder
RUN apt-get update
RUN apt-get install netcat -y
CMD sleep 1000s
@olg200492
olg200492 / rename-file-ending.sh
Created January 31, 2022 17:07
rename file ending from *.com to *.txt
#!/usr/bin/env bash
for f in *.com; do
mv -- "$f" "${f%.com}.txt"
done
@olg200492
olg200492 / jenkins-docker-compose.yml
Created January 31, 2022 11:22
docker compose for jenkins
# docker-compose.yaml
version: '3.8'
services:
jenkins:
image: jenkins/jenkins:lts-jdk11
privileged: true
user: root
ports:
- 8080:8080
- 50000:50000
@olg200492
olg200492 / gitlab-docker-compose.yaml
Last active January 31, 2022 11:33
docker-compose for gitlab
version: '3.6'
services:
web:
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost:8929'
gitlab_rails['gitlab_shell_ssh_port'] = 2224