From cf13c06ba87096f87fa1657204c7e885524999a9 Mon Sep 17 00:00:00 2001 From: beppe Date: Mon, 16 Mar 2020 12:14:50 +0100 Subject: [PATCH] submodule en src --- .DS_Store | Bin 0 -> 8196 bytes .gitmodules | 3 +++ infra | 1 + src/app.py | 17 +++++++++++++++++ src/dockerfile | 10 ++++++++++ src/requirements.txt | 1 + stage-infra | 1 + 7 files changed, 33 insertions(+) create mode 100644 .DS_Store create mode 100644 .gitmodules create mode 160000 infra create mode 100644 src/app.py create mode 100644 src/dockerfile create mode 100644 src/requirements.txt create mode 160000 stage-infra diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..3147abca4e3b1dc0786c6b43b0b2f9289c82360e GIT binary patch literal 8196 zcmeHM%}*0S6n_IKTM)V^2pA6=iHQkl+GtWa5Np9GA%;o`mM`mWJCu#voo06d0Wtj# zj3*O~iT{Bn9zB?N!jGE=PwJnbS8u-AnL=x=-iV1a$;@x|eaw6FYu^r20Dz>{3UPn| z0MM{=)H`wbP2+mr8(NE$L=g%4gHw!W@~l*Duv7xYfMP%~pcqgLC1)Q z3#}Rz1B!wFk^%mHFtBq>N~{PBUmZAvR{+E|6o(DxI-ejK5|a`u0#SpF2v~nB2c&kk(Uo5BNKT;Az^e}-w4ftBn7HbF`yV|WPsn@+u$4&!G@sz{ysBW zt1GdI3Cm#?%Cz&@xAyz!o6Gh3!XNeJ)tcW1$TM_>R`9`tytUz%<;w4@vSa%}EcS`C zw6+~O+^%UIT1QvMa%PonWCAl-^HZj`$e+??uxiQqEMv~z+_dIwx{=d+$C(?LwoARx z*)C8tS-NSv1-6l5Yi_|0*U1QlrbVi&-5hFf&VQ0kHP9$O@Mk0Q3XD6cd zpN@}B-Y#u!ZQt9u|Cnz8Uo-M`1f0j(_5>f~{_Om^+#h*a-QQPTukJ9?(Rrk+JF52_ zJ=W9P)7RH`yuWW?@WfzFKW3TvJ4KJ@I?f#CrJOaoSoG{drflYIx0ns+-5_Ic(VTwt z7tptG+Y)R(;nqZ z4qf^#cpOSjRVQb}M28_U!LOiBW?i#HBSXowkVWtS8HUSn9p>N;Y{5f#3eVvc?80aG z20utU(a9+?OfHZya*13clVpmd$qlj~+*_(2|Y+xoFlM*We`Bu1G9N_Bw59v^YV&K3TXcZ9$`2GJ% z^WXmuJTDbcF`yVYI0i`DL}ns|@x;;G7?>Z`2KL+7dE<5!fuRcy;c1Q-UdIvl{$Yr7 a15LS4Qes6QO0cOv1VS3rpcpt%27UsVFe)AZ literal 0 HcmV?d00001 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..ee981f5 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "infra"] + path = infra + url = https://github.com/beppevanrolleghem/stage-infra diff --git a/infra b/infra new file mode 160000 index 0000000..e05b588 --- /dev/null +++ b/infra @@ -0,0 +1 @@ +Subproject commit e05b58851797eb8a31b6fb256b8f79af24c8774c diff --git a/src/app.py b/src/app.py new file mode 100644 index 0000000..53b95c6 --- /dev/null +++ b/src/app.py @@ -0,0 +1,17 @@ +from flask import Flask +from flask import jsonify +app = Flask(__name__) + + +@app.route('/') +def doRequest(): + data = { + "serverName": "serverB", + "version": "master", + "success": "true" + } + return jsonify(data) + + +if __name__ == '__main__': + app.run(debug=True, host="0.0.0.0", port=6000) diff --git a/src/dockerfile b/src/dockerfile new file mode 100644 index 0000000..b9692c2 --- /dev/null +++ b/src/dockerfile @@ -0,0 +1,10 @@ +from python:3.7 + +copy . /app +workdir /app + +run pip install -r requirements.txt +expose 6000 +entrypoint [ "python" ] + +cmd [ "app.py" ] \ No newline at end of file diff --git a/src/requirements.txt b/src/requirements.txt new file mode 100644 index 0000000..2077213 --- /dev/null +++ b/src/requirements.txt @@ -0,0 +1 @@ +Flask \ No newline at end of file diff --git a/stage-infra b/stage-infra new file mode 160000 index 0000000..7938666 --- /dev/null +++ b/stage-infra @@ -0,0 +1 @@ +Subproject commit 7938666913047455c7864e47fca80700f22acd66