Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kitsukey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kio!
Kitsukey
Commits
b5c05102
Commit
b5c05102
authored
8 years ago
by
Aya Morisawa
Browse files
Options
Downloads
Patches
Plain Diff
Support Docker
Close #6
parent
098e25f6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/Dockerfile
+32
-0
32 additions, 0 deletions
docker/Dockerfile
docker/README.md
+15
-0
15 additions, 0 deletions
docker/README.md
with
47 additions
and
0 deletions
docker/Dockerfile
0 → 100644
+
32
−
0
View file @
b5c05102
FROM
base/archlinux
MAINTAINER
Aya Morisawa
RUN
rm
/etc/pacman.d/mirrorlist
RUN
echo
'Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch'
>>
/etc/pacman.d/mirrorlist
RUN
echo
'Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch'
>>
/etc/pacman.d/mirrorlist
RUN
rm
/etc/localtime
RUN
ln
-s
/usr/share/zoneinfo/Asia/Tokyo /etc/localtime
RUN
pacman
-Sy
--noconfirm
RUN
pacman
-S
--noconfirm
pacman
RUN
pacman-db-upgrade
RUN
pacman
-S
--noconfirm
archlinux-keyring
RUN
pacman
-Syyu
--noconfirm
RUN
pacman
-S
--noconfirm
git nodejs npm mongodb redis
RUN
echo
'#!/bin/sh'
>>
/root/misskey.sh
RUN
echo
'redis-server --daemonize yes'
>>
/root/misskey.sh
RUN
echo
'mongod > /dev/null &'
>>
/root/misskey.sh
RUN
echo
'cd /root/misskey'
>>
/root/misskey.sh
RUN
echo
'npm start'
>>
/root/misskey.sh
RUN
echo
'tail -f /dev/null'
>>
/root/misskey.sh
RUN
chmod
u+x /root/misskey.sh
EXPOSE
80
EXPOSE
443
EXPOSE
27017
CMD
["/root/misskey.sh"]
This diff is collapsed.
Click to expand it.
docker/README.md
0 → 100644
+
15
−
0
View file @
b5c05102
# How to use Misskey with Docker
Ensure that the working directory is the repository root directory.
To create misskey image:
`sudo docker build -t misskey ./docker`
To run misskey:
`sudo docker run --rm -i -t -p $PORT:80 -v $(pwd):/root/misskey -v $DBPATH:/data/db misskey`
where $PORT is the port used to access Misskey Web from host browser
and $DBPATH is the path of MongoDB database on the host for data persistence.
ex:
`sudo docker run --rm -i -t -p 80:80 -v $(pwd):/root/misskey -v /data/db:/data/db misskey`
Note that $(pwd) is the working directory.
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