Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
46e9bbfe
Commit
46e9bbfe
authored
8 years ago
by
PICHOU Kyâne
Committed by
PICHOU Kyâne
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use another giphy integration
parent
bbb2ce60
No related branches found
Branches containing commit
No related tags found
1 merge request
!5
CheckMK stable image
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mattermost-giphy/Dockerfile
+13
-15
13 additions, 15 deletions
mattermost-giphy/Dockerfile
mattermost-giphy/giphy_mat_hooker.conf
+0
-28
0 additions, 28 deletions
mattermost-giphy/giphy_mat_hooker.conf
mattermost-giphy/init.sh
+0
-10
0 additions, 10 deletions
mattermost-giphy/init.sh
with
13 additions
and
53 deletions
mattermost-giphy/Dockerfile
+
13
−
15
View file @
46e9bbfe
FROM
p
erl
FROM
p
ython:2.7
MAINTAINER
Kyâne PICHOU kyane@kyane.fr
MAINTAINER
Kyâne PICHOU kyane@kyane.fr
# Install CPAN and Carton
RUN
apt-get update
\
&&
apt-get
-y
install
build-essential libssl-dev
\
&&
curl
-L
http://cpanmin.us | perl - App::cpanminus
\
&&
cpanm Carton
RUN
apt-get update
&&
\
apt-get
install
-y
\
python-pip
\
python-dev
\
build-essential
&&
\
rm
-rf
/var/lib/apt/lists/
*
/var/cache/apt/
*
RUN
git clone https://git
.framasoft.org/framasoft/giphymathooker.git /giphymathooker
WORKDIR
/
giphymathooker
RUN
git clone https://git
hub.com/numberly/mattermost-integration-giphy.git /mattermost-giphy
WORKDIR
/
mattermost-giphy
RUN
carton
install
COPY
giphy_mat_hooker.conf /giphymathooker/giphy_mat_hooker.conf
COPY
init.sh /giphymathooker/init.sh
RUN
chmod
+x /giphymathooker/init.sh
RUN
python setup.py
install
ENTRYPOINT
python run.py
EXPOSE
8080
ENTRYPOINT
["/giphymathooker/init.sh"]
This diff is collapsed.
Click to expand it.
mattermost-giphy/giphy_mat_hooker.conf
deleted
100644 → 0
+
0
−
28
View file @
bbb2ce60
{
####################
# Hypnotoad settings
####################
# see http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad for a full list of settings
hypnotoad
=> {
# array of IP addresses and ports you want to listen to
listen
=> [
'http://0.0.0.0:8080'
],
},
######################
# Application settings
######################
# Giphy API key.
# The default is the dev key from Giphy, which is rate-limited.
# See https://github.com/Giphy/GiphyAPI to know how to get
# a production API key
apikey
=>
'{{%APIKEY%}}'
,
# Mattermost token
# When you create a slash command in mattermost, you get a token.
# Put it here if you want that service to be available to your team
# only.
# If you do not provide a token, it will check for parameters that
# Mattermost usually send with a slash command.
token
=>
'{{%TOKEN%}}'
};
This diff is collapsed.
Click to expand it.
mattermost-giphy/init.sh
deleted
100644 → 0
+
0
−
10
View file @
bbb2ce60
#!/bin/bash
sed
-i
"s/{{%TOKEN%}}/
$MATTERMOST_TOKEN
/g"
giphy_mat_hooker.conf
sed
-i
"s/{{%APIKEY%}}/
$GIPHY_APIKEY
/g"
giphy_mat_hooker.conf
carton
exec
hypnotoad script/giphy_mat_hooker
while
:
;
do
sleep
300
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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