Skip to content

Commit

Permalink
Merge pull request #2 from batala/play-travis
Browse files Browse the repository at this point in the history
Play travis
  • Loading branch information
batala authored Jan 15, 2024
2 parents 4cde026 + ebffa9c commit 8de19eb
Show file tree
Hide file tree
Showing 15 changed files with 484 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Выполнено ДЗ №

- [ ] Основное ДЗ
- [ ] Задание со *

## В процессе сделано:
- Пункт 1
- Пункт 2

## Как запустить проект:
- Например, запустить команду X в директории Y

## Как проверить работоспособность:
- Например, перейти по ссылке http://localhost:8080

## PR checklist
- [ ] Выставил label с номером домашнего задания
- [ ] Выставил label с темой домашнего задания
6 changes: 6 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Set to true to add assignees to pull requests
addAssignees: true

# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- mrgreyves
10 changes: 10 additions & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: 'Auto Assign'
on: pull_request

jobs:
add-reviews:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/[email protected]
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
26 changes: 26 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run tests for OTUS homework

on:
push:
branches-ignore: main
pull_request:
branches-ignore: main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout this repo
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Checkout repo with tests
uses: actions/checkout@v2
with:
repository: "express42/otus-homeworks"
ref: 2023-07
path: "./otus-homeworks/"

- name: Run tests
run: curl https://raw.githubusercontent.com/express42/otus-homeworks/2023-09/run.sh | bash
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Binary file added dockermonolith/.inspect_cont.txt.swo
Binary file not shown.
21 changes: 21 additions & 0 deletions dockermonolith/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM ubuntu:18.04
COPY start.sh /start.sh
RUN apt-get update && apt-get install -y \
mongodb-server \
ruby-full \
ruby-dev \
build-essential \
git \
ruby-bundler && \
chmod 0777 /start.sh && \
git clone -b monolith https://github.com/express42/reddit.git && \
cd /reddit && rm Gemfile.lock && bundle install && \
apt-get clean
COPY mongod.conf /etc/mongod.conf
COPY db_config /reddit/db_config


RUN cd /reddit && rm Gemfile.lock && bundle install
RUN chmod 0777 /start.sh

CMD ["/start.sh"]
1 change: 1 addition & 0 deletions dockermonolith/db_config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DATABASE_URL=127.0.0.1
72 changes: 72 additions & 0 deletions dockermonolith/diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
[?1049h[>4;2m[?1h=[?2004h[?1004h[?12h[?12l[?25l"inspect_cont.txt" 198L, 7233Bimage.txt" 90L, 3261B [|
  {|
  "Id": "9612e7e02706a16c2b91e2894472|
  "Created": "2024-01-03T16:04:47.557|
  "Path": "/bin/bash", |
  "Args": [], |
  "State": { |
   "Status": "exited", |
   "Running": false, |
   "Paused": false, |
   "Restarting": false, |
   "OOMKilled": false, |
  "Dead": false, |
  "Pid": 0, |
  "ExitCode": 1, |
  "Error": "", |
  "StartedAt": "2024-01-03T16:04:|
  "FinishedAt": "2024-01-03T16:05|
  }, |
  "Image": "sha256:f9a80a55f492e823bf|
  "ResolvConfPath": "/var/lib/docker/|
  "HostnamePath": "/var/lib/docker/co|
inspect_cont.txt 1,1 Top  [  {  "Id": "sha256:747c7399851b198408da6  "RepoTags": [    "yourname/ubuntu-tmp-file:lates  ],   "RepoDigests": [],   "Parent": "sha256:f9a80a55f492e823b  "Comment": "",   "Created": "2024-01-03T16:08:14.210  "Container": "9612e7e02706a16c2b91e  "ContainerConfig": {   "Hostname": "9612e7e02706",   "Domainname": "",   "User": "",   "AttachStdin": true,   "AttachStdout": true,   "AttachStderr": true,    "Tty": true,    "OpenStdin": true,    "StdinOnce": true,    "Env": [ inspect_image.txt 1,1 Top[?25h[?25l^M 2,52,5 [?25h[?25lType :qa and press <Enter> to exit Vim[?25h[?25l^X [?25h[?25l[?25h[?25l^X [?25h[?25l [|
  {|
  "Id": "9612e7e02706a16c2b91e2894472|
  "Created": "2024-01-03T16:04:47.557|
  "Path": "/bin/bash", |
  "Args": [], |
  "State": { |
   "Status": "exited", |
   "Running": false, |
   "Paused": false, |
   "Restarting": false, |
   "OOMKilled": false, |
  "Dead": false, |
  "Pid": 0, |
  "ExitCode": 1, |
  "Error": "", |
  "StartedAt": "2024-01-03T16:04:|
  "FinishedAt": "2024-01-03T16:05|
  }, |
  "Image": "sha256:f9a80a55f492e823bf|
  "ResolvConfPath": "/var/lib/docker/|
  "HostnamePath": "/var/lib/docker/co|
  "HostsPath": "/var/lib/docker/conta|
  "LogPath": "/var/lib/docker/contain|
inspect_cont.txt 2,5 Top  [  {  "Id": "sha256:747c7399851b198408da6  "RepoTags": [    "yourname/ubuntu-tmp-file:lates  ],   "RepoDigests": [],   "Parent": "sha256:f9a80a55f492e823b  "Comment": "",   "Created": "2024-01-03T16:08:14.210  "Container": "9612e7e02706a16c2b91e  "ContainerConfig": {   "Hostname": "9612e7e02706",   "Domainname": "",   "User": "",   "AttachStdin": true,   "AttachStdout": true,   "AttachStderr": true,    "Tty": true,    "OpenStdin": true,    "StdinOnce": true,    "Env": [    "PATH=/usr/local/sbin:/usr/ -------------------------------------------inspect_image.txt 2,5 Top[?25h[?25l^Z
[?1004l[?2004l[?1l>[?25h[>4;m[?1049l[?1049h[>4;2m[?1h=[?2004h[?1004h[?12h[?12l[?25l [|
  {|
  "Id": "9612e7e02706a16c2b91e2894472|
  "Created": "2024-01-03T16:04:47.557|
  "Path": "/bin/bash", |
  "Args": [], |
  "State": { |
   "Status": "exited", |
   "Running": false, |
   "Paused": false, |
   "Restarting": false, |
   "OOMKilled": false, |
  "Dead": false, |
  "Pid": 0, |
  "ExitCode": 1, |
  "Error": "", |
  "StartedAt": "2024-01-03T16:04:|
  "FinishedAt": "2024-01-03T16:05|
  }, |
  "Image": "sha256:f9a80a55f492e823bf|
  "ResolvConfPath": "/var/lib/docker/|
  "HostnamePath": "/var/lib/docker/co|
inspect_cont.txt 2,5 Top  [  {  "Id": "sha256:747c7399851b198408da6  "RepoTags": [    "yourname/ubuntu-tmp-file:lates  ],   "RepoDigests": [],   "Parent": "sha256:f9a80a55f492e823b  "Comment": "",   "Created": "2024-01-03T16:08:14.210  "Container": "9612e7e02706a16c2b91e  "ContainerConfig": {   "Hostname": "9612e7e02706",   "Domainname": "",   "User": "",   "AttachStdin": true,   "AttachStdout": true,   "AttachStderr": true,    "Tty": true,    "OpenStdin": true,    "StdinOnce": true,    "Env": [ inspect_image.txt 2,5 Top[?25h[?25l[?2004l[>4;m[?1004l[?2004l[?1l>[?25h[>4;m[?1049lVim: Error reading input, exiting...
Vim: Finished.
2 files to edit
4 changes: 4 additions & 0 deletions dockermonolith/docker-1.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
REPOSITORY TAG IMAGE ID CREATED SIZE
yourname/ubuntu-tmp-file latest 747c7399851b About a minute ago 63.2MB
ubuntu 18.04 f9a80a55f492 7 months ago 63.2MB
hello-world latest d2c94e258dcb 8 months ago 13.3kB
Loading

0 comments on commit 8de19eb

Please sign in to comment.