Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add base docker configs #1

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

akiszka-yf
Copy link

@akiszka-yf akiszka-yf commented Jul 14, 2023

This commit contains the configuration required for running YetiForce as a containerized application.

It aims to:

  1. introduce container separation - split the previous single container to a set
  2. save application data in separate volumes - avoid issues with configuration disappearing when containers are recreated
  3. provide easier backupability
  4. add caching in Dockerfile to speed up subsequent container builds

Installation and testing

For now, testing is manual. Try to run YF using Docker on your machine and check for possible errors.

To run dockerized YF:

  1. Install Docker Desktop.
  2. Add a line with 127.0.0.1 yeti to /etc/hosts on Unix or C:\Windows\System32\drivers\etc\hosts on Windows.
  3. Download the YetiForce code: git submodule update --init.
  4. Run docker compose up -d in the repository.
  5. Go to https://yeti and ignore the security warning.
  6. Install YF normally, for database details enter:
    Address: db
    Port: 3306
    Username: yeti
    Password: yeti
    Database name: yetiforce
    
  7. If you make any code changes, the following command will rebuild and restart the container: docker compose up -d --build.

@sonatype-lift
Copy link

sonatype-lift bot commented Jul 14, 2023

Sonatype Lift is retiring

Sonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console.
We are extremely grateful and thank you for your support over the years.

📖 Read about the impacts and timeline

@akiszka-yf
Copy link
Author

I added commits abaa2bf-a9da462 to address issues outlined here.

do
if test -f "/var/www/html/config/Main.php"; then
unique_key=$(grep application_unique_key /var/www/html/config/Main.php | awk -F"'" '{print $2}')
wget --timeout=900 -qO- http://nginx/cron.php?app_key="${unique_key}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants