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

This commit is contained in:
Stixx 2024-11-05 12:35:03 +01:00
parent 2e11e3bee3
commit fd7fa3b734
3 changed files with 211 additions and 1 deletions

208
.idea/workspace.xml generated Normal file
View File

@ -0,0 +1,208 @@
<?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="chore: CloudronManifest Dockerfile">
<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"><![CDATA[{
"keyToString": {
"Docker.Dockerfile prod-deps.executor": "Run",
"RunOnceActivity.ShowReadmeOnStart": "true",
"git-widget-placeholder": "master",
"last_opened_file_path": "/home/mihajlo/external-projects/nostrdev/stuff/blossom-cloudron",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.tslint": "(autodetect)",
"nodejs_package_manager_path": "pnpm",
"prettierjs.PrettierConfiguration.Package": "/home/mihajlo/external-projects/nostrdev/stuff/blossom-cloudron/node_modules/prettier",
"settings.editor.selected.configurable": "project.propVCSSupport.CommitDialog",
"ts.external.directory.path": "/home/mihajlo/Downloads/WebStorm-2024.2.3/WebStorm-242.23339.15/plugins/javascript-plugin/jsLanguageServicesImpl/external",
"vue.rearranger.settings.migration": "true"
}
}]]></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" />
<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="12639000" />
</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>
<option name="localTasksCounter" value="10" />
<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" />
<option name="LAST_COMMIT_MESSAGE" value="chore: CloudronManifest Dockerfile" />
</component>
</project>

View File

@ -30,6 +30,8 @@ COPY start.sh start.sh
COPY config.example.yml config.yml
COPY CloudronManifest.json .
RUN chmod +x start.sh
COPY --from=prod-deps /app/node_modules /app/node_modules
COPY --from=build ./app/build ./build
COPY --from=build ./app/admin/dist ./admin/dist

View File

@ -3,5 +3,5 @@
echo "==> Changing ownership"
chown -R cloudron:cloudron /app/data
echo "==> Starting strfry"
echo "==> Starting Blossom"
exec /usr/local/bin/gosu cloudron:cloudron node /app