diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2020-04-10 14:10:23 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2020-04-10 14:10:23 +0100 |
| commit | d4bfbbb753ad7f39f217e058c4ebbaf038e5f982 (patch) | |
| tree | 69a24e4cd4c1f95fa80e76b740fbe334326eb933 | |
| parent | 78400d587ea5367d3424333913ff4f94ca3f1908 (diff) | |
| download | reddit-lite-d4bfbbb753ad7f39f217e058c4ebbaf038e5f982.tar.xz reddit-lite-d4bfbbb753ad7f39f217e058c4ebbaf038e5f982.zip | |
Add dockerfile
| -rw-r--r-- | Dockerfile | 4 | ||||
| -rw-r--r-- | README.md | 20 | ||||
| -rw-r--r-- | build.gradle.kts | 2 |
3 files changed, 17 insertions, 9 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4ea9534 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM adoptopenjdk/openjdk8:alpine-jre +EXPOSE 8080 +COPY build/libs/reddit-lite-snapshot.jar /opt/reddit-lite.jar +CMD ["java", "-jar", "/opt/reddit-lite.jar"]
\ No newline at end of file @@ -1,19 +1,24 @@ # reddit-lite -Demo [here](https://reddit.james-barnett.net) +Available at [reddit.jamesbarnett.io](https://reddit.jamesbarnett.io) A lightweight, minimal, readonly Reddit client, designed for mobile devices or slow connections. - + ## Running locally -Reddit-lite is written in [play](https://www.playframework.com/). -Running a non distribution version requires [sbt](http://www.scala-sbt.org/index.html) (which sucks btw). +Reddit-lite is written in Kotlin using the [Spring Boot](https://spring.io/projects/spring-boot) framework. +You will need Java 8 or later to run it. ```sh git clone https://github.com/jamesbarnett91/reddit-lite && cd reddit-lite -mv conf/application.conf.sample conf/application.conf -sbt run +./gradlew run ``` -Alternatively, just use IntelliJ with the scala plugin and import the project. +Alternatively, you can pull the `jbarnett/reddit-lite` docker image and run that. +```sh +docker run --name reddit-lite -d -p 8080:8080 jbarnett/reddit-lite +``` +Then navigate to `localhost:8080` in your browser. + +Or go to [reddit.jamesbarnett.io)](https://reddit.jamesbarnett.io) for a hosted version. ## TODOs * ~~option to hide thumbnails~~ [done] @@ -23,5 +28,4 @@ Alternatively, just use IntelliJ with the scala plugin and import the project. * view subreddit info/sidebar * highlight gilded posts/comments * highlight comments from OP -* clean up css and maybe inline it to save an http request * should probably write some tests... diff --git a/build.gradle.kts b/build.gradle.kts index 99ff691..5dbf318 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } group = "io.jamesbarnett" -version = "0.0.1-SNAPSHOT" +version = "snapshot" java.sourceCompatibility = JavaVersion.VERSION_11 val developmentOnly by configurations.creating |