Compare commits
12 commits
Author | SHA1 | Date | |
---|---|---|---|
8d71044107 | |||
9292416cc2 | |||
1353f75d29 | |||
d0b86f7dd4 | |||
43b6912977 | |||
14a7fe0d02 | |||
2e549ee3ff | |||
b6c11afbb7 | |||
c300ebac74 | |||
e9fcdb1ad6 | |||
1f874b0351 | |||
f55a924e36 |
3 changed files with 56 additions and 3 deletions
12
Dockerfile
12
Dockerfile
|
@ -4,15 +4,25 @@ RUN apt-get update && \
|
|||
apt-get install ca-certificates extrepo -y && \
|
||||
extrepo enable prosody && \
|
||||
apt-get update && \
|
||||
apt-get install prosody prosody-modules -y
|
||||
apt-get install prosody prosody-modules lua5.4 liblua5.4-dev lua-luaossl -y
|
||||
|
||||
RUN mkdir -p /run/prosody/ && \
|
||||
chown -R prosody:prosody /run/prosody/
|
||||
|
||||
RUN mkdir -p /etc/prosody/conf.d/
|
||||
|
||||
RUN update-alternatives --set lua-interpreter /usr/bin/lua5.4
|
||||
|
||||
COPY prosody.cfg.lua /etc/prosody/prosody.cfg.lua
|
||||
|
||||
RUN mkdir -p /usr/local/prosody/custom_plugins/lib/luarocks/rocks-5.4
|
||||
RUN chown -R prosody:prosody /usr/local/prosody
|
||||
RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_cloud_notify_extensions
|
||||
#RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_sasl2
|
||||
#RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_sasl2_bind2
|
||||
#RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_sasl2_sm
|
||||
#RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_sasl2_fast
|
||||
|
||||
EXPOSE 5222
|
||||
EXPOSE 5269
|
||||
EXPOSE 5280
|
||||
|
|
35
Jenkinsfile
vendored
Normal file
35
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
pipeline {
|
||||
agent none
|
||||
environment {
|
||||
CHAT = "spacenerdmo@clacks.network"
|
||||
MAIL = "morgan@mcmillian.dev"
|
||||
}
|
||||
stages {
|
||||
stage('Build docker image') {
|
||||
agent { label 'docker-build' }
|
||||
environment {
|
||||
TAG = "${env.BRANCH_NAME == "main" ? "latest" : env.BRANCH_NAME}"
|
||||
}
|
||||
steps {
|
||||
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Started', notifySuspects: true, targets: "${CHAT}"
|
||||
script {
|
||||
docker.withRegistry('https://git.dreamfall.space/spacenerdmo', 'spacenerdmo-pkg-pub') {
|
||||
def customImage = docker.build("git.dreamfall.space/spacenerdmo/prosody:${TAG}")
|
||||
customImage.push()
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Succeeded', notifySuspects: true, targets: "${CHAT}"
|
||||
}
|
||||
failure {
|
||||
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Failed', notifySuspects: true, targets: "${CHAT}"
|
||||
mail to: "${MAIL}",
|
||||
subject: "Deploy Failed: ${currentBuild.fullDisplayName}",
|
||||
body: "Something is wrong with ${env.BUILD_URL}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -25,7 +25,8 @@ admins = { }
|
|||
-- This option allows you to specify additional locations where Prosody
|
||||
-- will search first for modules. For additional modules you can install, see
|
||||
-- the community module repository at https://modules.prosody.im/
|
||||
--plugin_paths = {}
|
||||
--plugin_paths = { }
|
||||
installer_plugin_path = "/usr/local/prosody/custom_plugins"
|
||||
|
||||
-- This is the list of modules Prosody will load on startup.
|
||||
-- Documentation for bundled modules can be found at: https://prosody.im/doc/modules
|
||||
|
@ -50,7 +51,8 @@ modules_enabled = {
|
|||
"vcard_legacy"; -- Conversion between legacy vCard and PEP Avatar, vcard
|
||||
|
||||
-- Nice to have
|
||||
"csi_simple"; -- Simple but effective traffic optimizations for mobile devices
|
||||
-- "csi_simple"; -- Simple but effective traffic optimizations for mobile devices
|
||||
"csi_battery_saver";
|
||||
"invites"; -- Create and manage invites
|
||||
"invites_adhoc"; -- Allow admins/users to create invitations via their client
|
||||
"invites_register"; -- Allows invited users to create accounts
|
||||
|
@ -72,6 +74,12 @@ modules_enabled = {
|
|||
"websocket"; -- XMPP over WebSockets
|
||||
|
||||
-- Other specific functionality
|
||||
"cloud_notify";
|
||||
"cloud_notify_extensions";
|
||||
--"sasl2";
|
||||
--"sasl2_bind2";
|
||||
--"sasl2_sm";
|
||||
--"sasl2_fast";
|
||||
--"announce"; -- Send announcement to all online users
|
||||
--"groups"; -- Shared roster support
|
||||
--"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
|
||||
|
|
Loading…
Reference in a new issue