Skip to content

Commit

Permalink
UPD: Обновляет readme
Browse files Browse the repository at this point in the history
  • Loading branch information
owlscatcher committed Jun 7, 2024
1 parent d4dd757 commit 620a390
Showing 1 changed file with 23 additions and 48 deletions.
71 changes: 23 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,74 +9,49 @@ for ARMStrong, OMIT and assistant for shield "D".

## Before start

### Configuring your workspace:

#### Install and configure Docker and Docker-Compose;

Installing:
### Local installation:

```bash
sudo dnf remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine

sudo dnf -y install dnf-plugins-core

sudo dnf config-manager \
--add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo

sudo dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin
git clone [email protected]:digital-armstrong/Armstrong.Web.git && \
cd ./Armstrong.Web && \
docker compose run --rm web bash -c "make setup"
```

Fixing problem:
This commands cloned repo and setup prroject dependency. Also you can manually install all deps:

```bash
usermod -a -G docker $USER
bundle install
yarn install
yarn build
yarn build:css
bin/rails db:drop db:create db:migrate db:seed
```

Start after system be load:
## Start

After installing the dependencies, you can run the project in docker compose:

```bash
sudo systemctl enable docker
docker compose up --build
```

#### Install [ZSH and Oh-my-zsh](https://ohmyz.sh/)
That's all. =)

Install:
## Other options

```bash
sudo dnf install zsh
```
All of the below commands must be executed inside the container.

```bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```
Connect to a running container: `docker exec -it armstrongweb_web_1 bash`
Clean startup with command execution: `docker compose run --rm web bash -c "<your command>"`

Set as default shell:
### Refresh database

```bash
chsh -s $(which zsh)
make cleanup
```

#### Install [git-flow](https://github.com/petervanderdoes/gitflow-avh)

Install:
### Test and lint

```bash
$ wget -q https://raw.githubusercontent.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh && sudo bash gitflow-installer.sh install stable; rm gitflow-installer.sh
make check
```

### Read manual

- [Git-flow](https://jeffkreeftmeijer.com/git-flow/)
- [Git-flow usage](https://github.com/petervanderdoes/gitflow-avh#git-flow-usage)


0 comments on commit 620a390

Please sign in to comment.