chore: config in start.sh
All checks were successful
Release to Gitea Container Registry / build_and_push (push) Successful in 13s

This commit is contained in:
Stixx 2024-11-06 17:07:58 +01:00
parent bf92a6c386
commit f121c2d6a7
3 changed files with 4 additions and 255 deletions

2
.gitignore vendored
View File

@ -1,6 +1,6 @@
## .idea folder (JetBrains IDEs)
.idea
#.idea
## File-based project format
*.iws

View File

@ -1,251 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="deaf6285-9bb5-4b4c-89a9-b0adf21548ad" name="Changes" comment="fix: implementing bloossom server config ENV variable">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Dockerfile" beforeDir="false" afterPath="$PROJECT_DIR$/Dockerfile" afterDir="false" />
<change beforePath="$PROJECT_DIR$/start.sh" beforeDir="false" afterPath="$PROJECT_DIR$/start.sh" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ChangesViewManager">
<option name="groupingKeys">
<option value="directory" />
</option>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="ProblemsViewState">
<option name="selectedTabId" value="CurrentFile" />
</component>
<component name="ProjectColorInfo">{
&quot;associatedIndex&quot;: 3
}</component>
<component name="ProjectId" id="2oOBrvFH76CQ5XnMCAUJwOKXVIl" />
<component name="ProjectLevelVcsManager">
<ConfirmationsSetting value="2" id="Add" />
</component>
<component name="ProjectViewState">
<option name="autoscrollFromSource" value="true" />
<option name="autoscrollToSource" value="true" />
<option name="hideEmptyMiddlePackages" value="true" />
<option name="openDirectoriesWithSingleClick" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">{
&quot;keyToString&quot;: {
&quot;Docker.Dockerfile prod-deps.executor&quot;: &quot;Run&quot;,
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
&quot;git-widget-placeholder&quot;: &quot;master&quot;,
&quot;last_opened_file_path&quot;: &quot;/home/mihajlo/external-projects/nostrdev/cheems/design&quot;,
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
&quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
&quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
&quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
&quot;nodejs_package_manager_path&quot;: &quot;pnpm&quot;,
&quot;prettierjs.PrettierConfiguration.Package&quot;: &quot;/home/mihajlo/external-projects/nostrdev/stuff/blossom-cloudron/node_modules/prettier&quot;,
&quot;settings.editor.selected.configurable&quot;: &quot;project.propVCSSupport.CommitDialog&quot;,
&quot;ts.external.directory.path&quot;: &quot;/home/mihajlo/Downloads/WebStorm-2024.2.3/WebStorm-242.23339.15/plugins/javascript-plugin/jsLanguageServicesImpl/external&quot;,
&quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
}
}</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$" />
</key>
<key name="MoveFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/.gitea/workflows" />
</key>
</component>
<component name="RunManager">
<configuration name="Dockerfile prod-deps" type="docker-deploy" factoryName="dockerfile" temporary="true" server-name="Docker">
<deployment type="dockerfile">
<settings>
<option name="imageTag" value="base_prod-deps" />
<option name="buildCliOptions" value="--target prod-deps" />
<option name="buildOnly" value="true" />
<option name="sourceFilePath" value="Dockerfile" />
</settings>
</deployment>
<method v="2" />
</configuration>
<configuration default="true" type="docker-deploy" factoryName="dockerfile" temporary="true">
<deployment type="dockerfile">
<settings />
</deployment>
<method v="2" />
</configuration>
<recent_temporary>
<list>
<item itemvalue="Docker.Dockerfile prod-deps" />
</list>
</recent_temporary>
</component>
<component name="SharedIndexes">
<attachedChunks>
<set>
<option value="bundled-js-predefined-d6986cc7102b-5c90d61e3bab-JavaScript-WS-242.23726.96" />
</set>
</attachedChunks>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="deaf6285-9bb5-4b4c-89a9-b0adf21548ad" name="Changes" comment="" />
<created>1730730943588</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1730730943588</updated>
<workItem from="1730730944615" duration="1999000" />
<workItem from="1730732957705" duration="8239000" />
<workItem from="1730757410332" duration="15231000" />
<workItem from="1730820334454" duration="124000" />
<workItem from="1730884753681" duration="7433000" />
<workItem from="1730901852078" duration="903000" />
</task>
<task id="LOCAL-00001" summary="init">
<option name="closed" value="true" />
<created>1730731002357</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1730731002357</updated>
</task>
<task id="LOCAL-00002" summary="ci: push docker image to gitea registry">
<option name="closed" value="true" />
<created>1730732193806</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1730732193806</updated>
</task>
<task id="LOCAL-00003" summary="init">
<option name="closed" value="true" />
<created>1730732972586</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1730732972586</updated>
</task>
<task id="LOCAL-00004" summary="ci: fix">
<option name="closed" value="true" />
<created>1730733217452</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1730733217452</updated>
</task>
<task id="LOCAL-00005" summary="feat: Cloudron packing">
<option name="closed" value="true" />
<created>1730741174518</created>
<option name="number" value="00005" />
<option name="presentableId" value="LOCAL-00005" />
<option name="project" value="LOCAL" />
<updated>1730741174518</updated>
</task>
<task id="LOCAL-00006" summary="fix: Dockerfile for Cloudron">
<option name="closed" value="true" />
<created>1730741468574</created>
<option name="number" value="00006" />
<option name="presentableId" value="LOCAL-00006" />
<option name="project" value="LOCAL" />
<updated>1730741468574</updated>
</task>
<task id="LOCAL-00007" summary="fix: removing blossom source code from the repo">
<option name="closed" value="true" />
<created>1730804643592</created>
<option name="number" value="00007" />
<option name="presentableId" value="LOCAL-00007" />
<option name="project" value="LOCAL" />
<updated>1730804643592</updated>
</task>
<task id="LOCAL-00008" summary="chore: fixing CloudronManifest">
<option name="closed" value="true" />
<created>1730805096870</created>
<option name="number" value="00008" />
<option name="presentableId" value="LOCAL-00008" />
<option name="project" value="LOCAL" />
<updated>1730805096870</updated>
</task>
<task id="LOCAL-00009" summary="chore: CloudronManifest Dockerfile">
<option name="closed" value="true" />
<created>1730805591992</created>
<option name="number" value="00009" />
<option name="presentableId" value="LOCAL-00009" />
<option name="project" value="LOCAL" />
<updated>1730805591992</updated>
</task>
<task id="LOCAL-00010" summary="fix: start.sh permissions">
<option name="closed" value="true" />
<created>1730806503846</created>
<option name="number" value="00010" />
<option name="presentableId" value="LOCAL-00010" />
<option name="project" value="LOCAL" />
<updated>1730806503846</updated>
</task>
<task id="LOCAL-00011" summary="fix: config symlink">
<option name="closed" value="true" />
<created>1730823252701</created>
<option name="number" value="00011" />
<option name="presentableId" value="LOCAL-00011" />
<option name="project" value="LOCAL" />
<updated>1730823252701</updated>
</task>
<task id="LOCAL-00012" summary="fix: temporary fix reverse symlink">
<option name="closed" value="true" />
<created>1730825314560</created>
<option name="number" value="00012" />
<option name="presentableId" value="LOCAL-00012" />
<option name="project" value="LOCAL" />
<updated>1730825314560</updated>
</task>
<task id="LOCAL-00013" summary="fix: implementing bloossom server config ENV variable">
<option name="closed" value="true" />
<created>1730902415201</created>
<option name="number" value="00013" />
<option name="presentableId" value="LOCAL-00013" />
<option name="project" value="LOCAL" />
<updated>1730902415201</updated>
</task>
<option name="localTasksCounter" value="14" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State />
</value>
</entry>
</map>
</option>
</component>
<component name="VcsManagerConfiguration">
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="true" />
<MESSAGE value="ci: push docker image to gitea registry" />
<MESSAGE value="init" />
<MESSAGE value="ci: fix" />
<MESSAGE value="feat: Cloudron packing" />
<MESSAGE value="fix: Dockerfile for Cloudron" />
<MESSAGE value="fix: removing blossom source code from the repo" />
<MESSAGE value="chore: fixing CloudronManifest" />
<MESSAGE value="chore: CloudronManifest Dockerfile" />
<MESSAGE value="fix: start.sh permissions" />
<MESSAGE value="fix: docker config symlink" />
<MESSAGE value="fix: config symlink" />
<MESSAGE value="fix: temporary fix reverse symlink" />
<MESSAGE value="fix: implementing bloossom server config ENV variable" />
<option name="LAST_COMMIT_MESSAGE" value="fix: implementing bloossom server config ENV variable" />
</component>
</project>

View File

@ -1,10 +1,10 @@
#!/bin/bash
echo "==> Changing ownership"
chown -R cloudron:cloudron /app/data
echo "==> Copy config"
cp config.example.yml /app/data/config.yml
echo "==> Changing ownership"
chown -R cloudron:cloudron /app/data
echo "==> Starting Blossom"
exec /usr/local/bin/gosu cloudron:cloudron node /app