README ¶
media-svc
media-svc - go micro service work with media
How it works
- Using micro framework
- Using CRUD interface for customers
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
# change working-directory to $TARGET_DIR_ON_HOST
sudo sed -i 's/\/home\/gitlab-runner/\/home\/nimda\/code/' /etc/systemd/system/gitlab-runner.service
# change runinig user
sudo sed -i 's/\"--user\" \"gitlab-runner\"/\"--user\" \"nimda\"/' /etc/systemd/system/gitlab-runner.service
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.media-svc.{environment}" \
--tag-list "deploy,deploy.media-svc.{environment}"
5. Give service start without askpass
sudo cp media-svc.sudoers /etc/sudoers.d/media-svc
Documentation ¶
There is no documentation for this package.
Click to show internal directories.
Click to hide internal directories.