Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-workflow
Commits
2fb44953
Commit
2fb44953
authored
1 year ago
by
Tushar
Browse files
Options
Download
Patches
Plain Diff
Fix start.sh and Dockerfile
parent
3bf2eedf
main
dev
feat/centro
feature/formlistapi
revert-67-contributeByGitpod
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.env
+2
-1
.env
docker-compose.gitpod.yaml
+1
-0
docker-compose.gitpod.yaml
packages/enketo-express/Dockerfile
+2
-2
packages/enketo-express/Dockerfile
packages/enketo-express/start.sh
+7
-11
packages/enketo-express/start.sh
with
12 additions
and
14 deletions
+12
-14
.env
+
2
−
1
View file @
2fb44953
...
...
@@ -15,4 +15,5 @@ CENTRAL_USER_PASS=StrongPassword@1234
#enketo-express
ENCRYPTION_KEY=somestrongencrytionkey
LESS_SECURE_ENCRYPTION_KEY=ssssomestrongencrytionkey
\ No newline at end of file
LESS_SECURE_ENCRYPTION_KEY=ssssomestrongencrytionkey
FORM_MANAGER_BASE_URI=https://enketo-manager-ratings-tech.samagra.io/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.gitpod.yaml
+
1
−
0
View file @
2fb44953
...
...
@@ -171,6 +171,7 @@ services:
REDIS_MAIN_PORT
:
6379
REDIS_CACHE_HOST
:
redis_cache
REDIS_CACHE_PORT
:
6379
FORM_MANAGER_BASE_URI
:
https://enketo-manager-ratings-tech.samagra.io/
networks
:
db_net
:
...
...
This diff is collapsed.
Click to expand it.
packages/enketo-express/Dockerfile
+
2
−
2
View file @
2fb44953
...
...
@@ -12,5 +12,5 @@ WORKDIR enketo-express
# TODO: builds can be made faster if we only copy files needed to do pnpm i. pnpm i will be cached or explore multistage builds
RUN
pnpm i
EXPOSE
8065
# To transfer env variables of current shell to start.sh
CMD
[".", "start.sh"]
\ No newline at end of file
RUN
chmod
+x start.sh
ENTRYPOINT
["./start.sh"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
packages/enketo-express/start.sh
+
7
−
11
View file @
2fb44953
#!/bin/bash
cp
config/default-config.json tmp.json
jq
-r
--arg
ENCRYPTION_KEY
$ENCRYPTION_KEY
'."encryption key" |= $ENCRYPTION_KEY'
tmp.json
>
config/default-config.json
jq
-r
--arg
LESS_SECURE_ENCRYPTION_KEY
$LESS_SECURE_ENCRYPTION_KEY
'."less secure encryption key" |= $LESS_SECURE_ENCRYPTION_KEY'
config/default-config.json
>
config/default-config.json
jq
-r
--arg
REDIS_MAIN_HOST
$REDIS_MAIN_HOST
'."redis.main.host" |= $REDIS_MAIN_HOST'
tmp.json
>
config/default-config.json
jq
-r
--arg
REDIS_MAIN_CACHE
$REDIS_MAIN_PORT
'."redis.main.port" |= $REDIS_MAIN_PORT'
tmp.json
>
config/default-config.json
jq
-r
--arg
REDIS_CACHE_HOST
$REDIS_CACHE_HOST
'."redis.cache.host" |= $REDIS_CACHE_HOST'
tmp.json
>
config/default-config.json
jq
-r
--arg
REDIS_CACHE_CACHE
$REDIS_CACHE_PORT
'."redis.cache.port" |= $REDIS_CACHE_PORT'
tmp.json
>
config/default-config.json
rm
tmp.json
echo
"
$(
jq
-r
--arg
ENCRYPTION_KEY
$ENCRYPTION_KEY
'."encryption key" |= $ENCRYPTION_KEY'
config/default-config.json
)
"
>
config/default-config.json
echo
"
$(
jq
-r
--arg
LESS_SECURE_ENCRYPTION_KEY
$LESS_SECURE_ENCRYPTION_KEY
'."less secure encryption key" |= $LESS_SECURE_ENCRYPTION_KEY'
config/default-config.json
)
"
>
config/default-config.json
echo
"
$(
jq
-r
--arg
REDIS_MAIN_HOST
$REDIS_MAIN_HOST
'.redis.main.host |= $REDIS_MAIN_HOST'
config/default-config.json
)
"
>
config/default-config.json
echo
"
$(
jq
-r
--arg
REDIS_MAIN_PORT
$REDIS_MAIN_PORT
'.redis.main.port |= $REDIS_MAIN_PORT'
config/default-config.json
)
"
>
config/default-config.json
echo
"
$(
jq
-r
--arg
REDIS_CACHE_HOST
$REDIS_CACHE_HOST
'.redis.cache.host |= $REDIS_CACHE_HOST'
config/default-config.json
)
"
>
config/default-config.json
echo
"
$(
jq
-r
--arg
REDIS_CACHE_PORT
$REDIS_CACHE_PORT
'.redis.cache.port |= $REDIS_CACHE_PORT'
config/default-config.json
)
"
>
config/default-config.json
echo
"
$(
jq
-r
--arg
FORM_MANAGER_BASE_URI
$FORM_MANAGER_BASE_URI
'.formManagerBaseURI |= $FORM_MANAGER_BASE_URI'
config/default-config.json
)
"
>
config/default-config.json
node app.js
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets