Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Websites
Planet KDE
Commits
9c5f91e6
Commit
9c5f91e6
authored
Jun 01, 2020
by
Davide Briani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docker files to run the website locally
parent
13fd86e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
4 deletions
+37
-4
Dockerfile
Dockerfile
+11
-0
README.md
README.md
+19
-4
docker-compose.yml
docker-compose.yml
+7
-0
No files found.
Dockerfile
0 → 100644
View file @
9c5f91e6
FROM
ruby:2.5
RUN
mkdir
/app
WORKDIR
/app
RUN
gem
install
bundler
COPY
Gemfile /app/Gemfile
COPY
Gemfile.lock /app/Gemfile.lock
RUN
bundle
install
COPY
. /app
RUN
bundle
exec
rake build
EXPOSE
4000
CMD
["bundle", "exec", "jekyll", "serve", "--host", "0.0.0.0"]
\ No newline at end of file
README.md
View file @
9c5f91e6
...
...
@@ -7,12 +7,13 @@ KDE themed and not liable to offend. If you have a general blog you may want to
subscribe the feed for that tag only to Planet KDE.
## Adding your feed
Anyone in the KDE group on invent.kde.org can add new feeds to this repository.
If you want to get your feed added, we prefer Merge Requests via
[
invent.kde.org
](
https://invent.kde.org/websites/planet-kde-org
)
.
*
Fork this repository
*
Edit
[
planet.ini
](
https://invent.kde.org/websites/planet-kde-org/tree/master/planet.ini
)
and add:
-
Fork this repository
-
Edit
[
planet.ini
](
https://invent.kde.org/websites/planet-kde-org/tree/master/planet.ini
)
and add:
```
ini
[id]
# replace id with your feed's unique identifier (a-z0-9-_) (eg. kde-dot)
...
...
@@ -26,8 +27,8 @@ If you want to get your feed added, we prefer Merge Requests via [invent.kde.org
#
gsoc
```
*
Upload your avatar to
[
hackergotchi directory
](
https://invent.kde.org/websites/planet-kde-org/tree/master/hackergotchi
)
*
Send a Pull Request
-
Upload your avatar to
[
hackergotchi directory
](
https://invent.kde.org/websites/planet-kde-org/tree/master/hackergotchi
)
-
Send a Pull Request
If you do not have a Git account,
<a
href=
"https://bugs.kde.org/enter_bug.cgi?product=planet%20kde"
>
file
a bug in Bugzilla
</a>
listing your name, Git account (if you have one), IRC nick (if you have one), RSS or
...
...
@@ -76,11 +77,25 @@ your blog.
For further guidance on good practice see the
<a
href=
"https://www.kde.org/code-of-conduct/"
>
KDE Code of Conduct
</a>
.
## Development environment
To run this website locally, use the following commands:
```
sh
bundler
install
bundler
exec
rake build
bundler
exec
jekyll serve
```
and visit
[
127.0.0.1:4000
](
http://127.0.0.1:4000
)
If you don't have Ruby on your system or simply prefer a docker / docker-compose workflow:
```
sh
docker-compose up
--build
--detach
```
and when you're done:
```
sh
docker-compose down
```
docker-compose.yml
0 → 100644
View file @
9c5f91e6
version
:
"
3.4"
services
:
planet-kde-org
:
build
:
context
:
./
ports
:
-
"
4000:4000"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment