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

Allow test-panel branch instances to run without Specify 6 #122

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

Conversation

acwhite211
Copy link
Member

The main change is to edit nginx rewrite for config to static-files volume path. The current solution will require all new branches to have config in the Specify 7 container, instead of in a seperate Specfy 6 container. Further work will be needed in order to support new and old branches where the config location is different for the nginx rewrite path to point to. Need a good way of specifying if a branch uses the new or old config setup.

@acwhite211
Copy link
Member Author

We'll need to add a way to check to see if the branch has the config directory in the Specify 7 filesystem from the dockerCompose.ts file.

@acwhite211
Copy link
Member Author

Added code to check each branch to see if it has a 'config/' directory. Depending if it does or not, we need to modify the nginx and docker-compose files. I couldn't inspect each branch's docker container before it's created, so instead it just makes a GET request to 'https://github.com/specify/specify7/tree/${branch}/config' to see if the config directory exists for the branch.

}));
const state = await Promise.all(
rawState.map(async (deployment) => {
const hasInteralSp7ConfigDirectory = await branchHasConfigDirectory(deployment.branch);
Copy link
Member

Choose a reason for hiding this comment

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

this is going to make a lot of network requests to github (setState is called many times per day, and the request is made for each branch)

though I guess this is the least complicated approach

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