-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from scientist-softserv/build_work
trying to get the build to work
- Loading branch information
Showing
14 changed files
with
282 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
*.rdb | ||
./artifacts | ||
./chart | ||
./coverage | ||
./docker | ||
./fcrepo | ||
./importer | ||
./log | ||
./pg | ||
./public/assets | ||
./public/branding | ||
./public/packs | ||
./public/system | ||
./public/uploads | ||
./tmp | ||
.coveralls.yml | ||
.ebextensions | ||
.fcrepo_wrapper | ||
.hound.yml | ||
.idea | ||
.internal_test_app/* | ||
.solr_wrapper | ||
|
||
node_modules/* | ||
solr/solr/* | ||
fcrpo/* | ||
pg/* | ||
fits.log | ||
ImageMagick* | ||
.DS_Store |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,8 @@ on: | |
|
||
jobs: | ||
build: | ||
uses: scientist-softserv/actions/.github/workflows/[email protected].14 | ||
uses: scientist-softserv/actions/.github/workflows/[email protected].15 | ||
secrets: inherit | ||
with: | ||
platforms: "linux/amd64" | ||
solrTarget: hyku-solr | ||
subdir: hyrax-webapp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,5 @@ on: | |
|
||
jobs: | ||
deploy: | ||
uses: scientist-softserv/actions/.github/workflows/[email protected].14 | ||
uses: scientist-softserv/actions/.github/workflows/[email protected].15 | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
scratch.md | ||
*~undo-tree~ | ||
.env.* | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM ghcr.io/samvera/hyku/base:latest as hyku-web | ||
ARG APP_PATH | ||
COPY --chown=1001:101 $APP_PATH/Gemfile* /app/samvera/hyrax-webapp/ | ||
RUN git config --global --add safe.directory /app/samvera && \ | ||
bundle install --jobs "$(nproc)" | ||
|
||
COPY --chown=1001:101 $APP_PATH/bin/db-migrate-seed.sh /app/samvera/ | ||
# This is specifically NOT $APP_PATH but the parent directory | ||
COPY --chown=1001:101 . /app/samvera | ||
|
||
RUN RAILS_ENV=production SECRET_KEY_BASE=`bin/rake secret` DB_ADAPTER=nulldb DB_URL='postgresql://fake' bundle exec rake assets:precompile && yarn install | ||
CMD ./bin/web | ||
|
||
FROM hyku-web as hyku-worker | ||
CMD ./bin/worker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Save the current branch name | ||
current_branch=$(git rev-parse HEAD) | ||
|
||
# Fetch any updates from the origin | ||
if $(git rev-parse --is-shallow-repository); then | ||
git fetch --unshallow -a origin | ||
else | ||
git fetch -a origin | ||
fi | ||
|
||
# Loop through all remote branches | ||
for branch in $(git branch -r | grep -v '\->'); do | ||
# Checkout each branch | ||
if [[ $branch == *origin* ]]; then | ||
branch_name="${branch#origin/}" | ||
echo "Checking out $branch_name branch..." | ||
git checkout $branch_name | ||
else | ||
echo "$branch is not from the origin" | ||
fi | ||
done | ||
|
||
# Switch back to the original branch | ||
git checkout $current_branch | ||
|
||
echo "Operation complete, returned to $current_branch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/sh | ||
|
||
# This script wraps up helm deployment. It is meant as a clear starting point for | ||
# commandline deployment or CI based deployment. It requires the following ENV vars be set | ||
# | ||
# CHART_VERSION: this is the version of the hyrax chart you want to deploy. default - 0.22.0 | ||
# DEPLOY_IMAGE: this is the build image that runs the rails application. Typically this would run puma or passenger. eg: samvera/hyrax or ghcr.io/samvera/hyku. Defaults to gcrh.io/samvera/hyku | ||
# WORKER_IMAGE: this is the worker target, usually built from the same Dockerfile as DEPLOY_IMAGE. eg: samvera/hyrax/worker or ghcr.io/samvera/hyku/worker. Defaults to gcrh.io/samvera/hyku/worker | ||
# DEPLOY_TAG: name of of the tag you want to deploy for deploy image. eg: "latest" or "v3.0.1" or "f123asdf1". Defaults to latest | ||
# WORKER_TAG: name of of the tag you want to deploy for deploy image. eg: "latest" or "v3.0.1" or "f123asdf1". Defaults to DEPLOY_TAG | ||
# HELM_EXTRA_ARGS: any additional arguments you'd like passed to helm upgrade directly. can be blank. | ||
|
||
if [ -z "$1" ] || [ -z "$2" ] | ||
then | ||
echo './bin/deploy RELEASE_NAME NAMESPACE' | ||
exit 1 | ||
fi | ||
release_name="${1//_/-}" | ||
namespace="${2//_/-}" | ||
|
||
DEPLOY_IMAGE="${DEPLOY_IMAGE:-ghcr.io/samvera/hyku}" | ||
WORKER_IMAGE="${WORKER_IMAGE:-ghcr.io/samvera/hyku/worker}" | ||
DEPLOY_TAG="${DEPLOY_TAG:-latest}" | ||
WORKER_TAG="${WORKER_TAG:-$DEPLOY_TAG}" | ||
echo $DEPLOY_TAG | ||
|
||
CHART_VERSION="${CHART_VERSION:-2.0.0}" | ||
helm pull --untar oci://ghcr.io/samvera/charts/hyrax --version $CHART_VERSION | ||
helm repo update | ||
|
||
helm upgrade \ | ||
--install \ | ||
--atomic \ | ||
--timeout 15m0s \ | ||
--set image.repository="$DEPLOY_IMAGE" \ | ||
--set image.tag="$DEPLOY_TAG" \ | ||
--set worker.image.repository="$WORKER_IMAGE" \ | ||
--set worker.image.tag="$DEPLOY_TAG" \ | ||
$HELM_EXTRA_ARGS \ | ||
--namespace="$namespace" \ | ||
--create-namespace \ | ||
"$release_name" \ | ||
hyrax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule hyrax-webapp
updated
14 files
+0 −4 | .circleci/config.yml | |
+4 −2 | .env | |
+1 −1 | .github/workflows/base.yaml | |
+2 −1 | Dockerfile | |
+10 −7 | Gemfile | |
+45 −40 | Gemfile.lock | |
+3 −1 | app/views/_user_util_links.html.erb | |
+4 −2 | app/views/themes/cultural_repository/_user_util_links.html.erb | |
+4 −2 | app/views/themes/institutional_repository/_user_util_links.html.erb | |
+9 −9 | config/authorities/licenses.yml | |
+2 −1 | config/database.yml | |
+26 −1 | config/initializers/bulkrax.rb | |
+13 −5 | docker-compose.yml | |
+8 −12 | spec/rails_helper.rb |
Oops, something went wrong.