Skip to content

Conversation

@linushuan
Copy link
Collaborator

purpose

Let user easier start ntoj when first download.
Fix docker watch problem on dev version and container conflict

changes

Docker release version init & start step
Separate dev and release version container
Docker dev version watch range
New default OJ-problem

Because create a new problem with web after start services is complex,
I build a new problem file and write the scripts to finish it.
In this commit we have three side:
1. Use Install-release.sh to complete init step
  Because init step need to copy scripts/.env.example,
  and it usually be ignored,
  I use Install-release.sh to pack these step.

2. Can modify config.py:
  Config should be modified, but before we don't do it.

3. Fix backend error:
  When use docker compose, backend won't connect to db every twice.
  It's because backend doesn't wait db start. So I fix it.
Here are five things in this commit:
1. Use Install-release.sh to complete init step
  Init step need to copy scripts/.env.example,
  but it usually be ignored.
  Because of this, I use Install-release.sh to pack these step.

2. Can modify config.py:
  Config should be modified for user, but before we don't do it.

3. Fix backend error:
  When use docker compose in release version,
  backend won't connect to db every twice.
  It's because backend doesn't wait db start. So I fix it.

4. Separate dev and release docker container:
  When I solving the above tasks,
  I need to use dev and release in the same time,
  but the docker container and port are the same.
  To fix it, I separated them to two independent part.

5. Add watch ./scripts in dev:
  Like 4. , the dev version should watch the changes in scripts that
  can know whole change.
Becuase I change the container name on release version for
separate dev and release version,
the container name on test-docker.yml are wrong.
In test-docker.yml, I just change some 'backend' to 'release-backend',
so release build test has error.
This commit change all 'backend' to 'release-backend' when it needs.
@tobiichi3227 tobiichi3227 merged commit 4f9f81a into TFcis:v2.0 Jan 5, 2026
3 checks passed
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.

3 participants