Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3997106
commit f34ecb9
Showing
4 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM clojure:lein-2.7.1-alpine | ||
|
||
ADD gorilla /app/ | ||
ADD src /app/src/ | ||
|
||
EXPOSE 9090 | ||
|
||
|
||
WORKDIR /app | ||
|
||
|
||
ENTRYPOINT ["/app/docker-entrypoint-gorilla.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
cd /app | ||
lein gorilla :port 9090 :ip 0.0.0.0 | ||
|
||
|
||
sleep 300 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(defproject gorilla-uawa "0.1.0-SNAPSHOT" | ||
:dependencies [ | ||
[org.clojure/clojure "1.8.0"] | ||
[org.clojure/data.json "0.2.6"] | ||
[org.clojure/java.jdbc "0.7.0-beta4"] | ||
] | ||
:main ^:skip-aot gorilla-test.core | ||
:target-path "target/%s" | ||
:plugins [[lein-gorilla "0.4.0"]] | ||
:profiles {:uberjar {:aot :all}}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
;; gorilla-repl.fileformat = 1 | ||
|
||
;; ** | ||
;;; # Uawa | ||
;; ** | ||
|
||
;; @@ | ||
(use 'uawa.core) | ||
;; @@ | ||
;; => | ||
;;; {"type":"html","content":"<span class='clj-nil'>nil</span>","value":"nil"} | ||
;; <= | ||
|
||
;; @@ | ||
(ціна ціна-груші 100 грн) | ||
(функція розрахуй-вартість [ціна-за-єдиницю кількість] (домнож ціна-за-єдиницю кількість)) | ||
(друкуй (розрахуй-вартість ціна-груші 10)) | ||
;; @@ | ||
;; -> | ||
;;; 1000 UAH | ||
;;; | ||
;; <- | ||
;; => | ||
;;; {"type":"html","content":"<span class='clj-nil'>nil</span>","value":"nil"} | ||
;; <= | ||
|
||
;; @@ | ||
|
||
;; @@ |