π©βπ»
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
-- option 1 | |
varibles: | |
ENV: sandbox | |
stages: | |
- build | |
- test | |
- deploy | |
... | |
test-job: |
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
stages: | |
- build | |
- test | |
- deploy | |
... | |
test-job: | |
stage: test | |
trigger: my-project | |
... |
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
stages: | |
- build | |
- test | |
- deploy | |
... | |
test-job: | |
stage: test | |
trigger: | |
project: my-project |
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
version: "3.7" | |
services: | |
mainline: | |
build: | |
context: . | |
dockerfile: nginx.Dockerfile | |
args: | |
NGINX_VERSION: 1.17.9-perl | |
BUILD_FILE: debian.conf | |
image: app:mainline |
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
--- | |
- name: Log to logger | |
hosts: server3 | |
become: true | |
tasks: | |
- name: log | |
syslogger: | |
msg: logger "I just logged a message from Ansible" |
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
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 |
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
FROM ubuntu:latest | |
RUN mkdir -p /folder | |
RUN apt-get update | |
RUN apt-get install netcat -y | |
CMD sleep 1000s |
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
#!/usr/bin/env bash | |
for f in *.com; do | |
mv -- "$f" "${f%.com}.txt" | |
done |
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
# docker-compose.yaml | |
version: '3.8' | |
services: | |
jenkins: | |
image: jenkins/jenkins:lts-jdk11 | |
privileged: true | |
user: root | |
ports: | |
- 8080:8080 | |
- 50000:50000 |
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
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 |
NewerOlder