afisha-api

command module
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

README

afisha-api

afisha-api - go micro service for sync from mobilet database to nosql.


How it works

  • Using micro framework

Deploy with own gitlab-runner

GitLab Runner is an application that works with GitLab CI/CD to run jobs in a pipeline.

Dependencies

1. GNU Make info

sudo apt install make

2. Gitlab Runner info

curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash
sudo apt-get install gitlab-runner
Installation order

1. Set gitlab-runner run user and working directory

sudo nano /etc/systemd/system/gitlab-runner.service

ExecStart=/usr/lib/gitlab-runner/gitlab-runner "run" "--working-directory" "/home/nimda/code" "--config" "/etc/gitlab-runner/config.toml" "--service" "gitlab-runner" "--syslog" "--user" "nimda"

2. Reload systemct daemons

sudo systemctl daemon-reload

3. Restart gitlab-runner service

sudo service gitlab-runner restart

4. Register gitlab-runner info

sudo gitlab-runner register \
--non-interactive \
--url "https://gitlab.softpark.kz/" \
--registration-token "PROJECT_RUNNER_TOKEN" \
--executor "shell" \
--description "gr.afisha-api.{environment}" \
--tag-list "deploy,deploy.afisha-api.{environment}"

5. Give service start without askpass

sudo cp afisha-api.sudoers /etc/sudoers.d/afisha-api

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
web

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL