-
Notifications
You must be signed in to change notification settings - Fork 5
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 #10 from IvanJelicSF/release/2.7
Syncing with superdesk/superdesk release/2.7 branch
- Loading branch information
Showing
61 changed files
with
4,490 additions
and
2,069 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"elastic": 7 | ||
} |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
**/node_modules | ||
**/dist | ||
**/package-lock.json | ||
data |
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,25 @@ | ||
# BUILD | ||
FROM node:12 AS build | ||
|
||
# install client | ||
WORKDIR /tmp/client | ||
COPY . . | ||
RUN npm install --no-audit --unsafe-perm | ||
RUN npm run build | ||
|
||
# DEPLOY | ||
FROM nginx | ||
|
||
# setup the environment | ||
WORKDIR /opt/superdesk/client/dist | ||
|
||
# build client | ||
COPY --from=build /tmp/client/dist ./ | ||
|
||
RUN rm /etc/nginx/conf.d/default.conf | ||
COPY ./docker/nginx.conf /etc/nginx/nginx.conf | ||
COPY ./docker/superdesk_vhost.conf /etc/nginx/sites-enabled/superdesk.conf | ||
COPY ./docker/start.sh /opt/superdesk/start.sh | ||
|
||
ENTRYPOINT [ "/opt/superdesk/start.sh" ] | ||
CMD ["nginx", "-g daemon off;"] |
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 |
---|---|---|
|
@@ -68,6 +68,4 @@ http { | |
|
||
include /etc/nginx/conf.d/*.conf; | ||
include /etc/nginx/sites-enabled/*; | ||
} | ||
|
||
daemon off; | ||
} |
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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
#!/bin/bash | ||
cd /opt/superdesk/client/dist && | ||
set -e | ||
|
||
cd /opt/superdesk/client/dist | ||
|
||
# replace default client config with env vars | ||
sed -i \ | ||
-e "s/http:\/\/localhost:5000\/api/$(echo $SUPERDESK_URL | sed 's/\//\\\//g')/g" \ | ||
-e "s/ws:\/\/localhost:5100/$(echo $SUPERDESK_WS_URL | sed 's/\//\\\//g')/g" \ | ||
-e "s/ws:\/\/0.0.0.0:5100/$(echo $SUPERDESK_WS_URL | sed 's/\//\\\//g')/g" \ | ||
-e 's/iframely:{key:""}/iframely:{key:"'$IFRAMELY_KEY'"}/g' \ | ||
app*.js && | ||
nginx & | ||
app*.js | ||
|
||
which nginx | ||
|
||
cd /opt/superdesk && sleep 5 && bash honcho start | ||
exec "$@" |
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,37 @@ | ||
import {startApp} from 'superdesk-core/scripts/index'; | ||
|
||
setTimeout(() => { | ||
startApp( | ||
[ | ||
{ | ||
id: 'annotationsLibrary', | ||
load: () => import('superdesk-core/scripts/extensions/annotationsLibrary'), | ||
}, | ||
{ | ||
id: 'markForUser', | ||
load: () => import('superdesk-core/scripts/extensions/markForUser'), | ||
}, | ||
{ | ||
id: 'datetimeField', | ||
load: () => import('superdesk-core/scripts/extensions/datetimeField'), | ||
}, | ||
{ | ||
id: 'planning-extension', | ||
load: () => import('superdesk-planning/client/planning-extension'), | ||
}, | ||
{ | ||
id: 'broadcasting', | ||
load: () => import('superdesk-core/scripts/extensions/broadcasting').then((broadcasting) => { | ||
broadcasting.setCustomizations({ | ||
getRundownItemDisplayName: (rundown) => rundown.technical_title, | ||
}); | ||
|
||
return broadcasting; | ||
}), | ||
}, | ||
], | ||
{}, | ||
); | ||
}); | ||
|
||
export default angular.module('main.superdesk', []); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.