diff options
author | Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com> | 2021-03-01 14:00:50 +0100 |
---|---|---|
committer | Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com> | 2021-03-05 10:34:22 +0100 |
commit | 3a379f80dd6df7ea28210e46c2cea81a64b95534 (patch) | |
tree | 7d576ffb18dc2bc42ab865af8bdd1f57313e899d /Makefile | |
parent | b4c81d195c09cc2a7623316d417de7624f2b6bb2 (diff) |
move httpserver from pnf-simulator repo to nf-simulator/pm-https-server directly.
Change-Id: I80b7db9dbe02389cb2a81cdbfb201830349ca5b7
Issue-ID: INT-1869
Signed-off-by: Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1a0064a --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +default: + @echo "There is no default target. Use: make <specific_target>" +build: + @echo "##### Build PM Https Server docker image #####" + mkdir -p target/usr/local/apache2/passwd/ && cp resources/local/.htpasswd target/usr/local/apache2/passwd/ + mkdir -p target/usr/local/apache2/conf/ && cp resources/local/upload.php target/usr/local/apache2/conf/ + mkdir -p target/etc/apache2/sites-enabled/ && cp resources/sites-enabled/000-default.conf target/etc/apache2/sites-enabled/000-default.conf + cp resources/ports.conf target/etc/apache2/ + cp resources/apache2.conf target/etc/apache2/ + mkdir -p target/etc/apache2/certs && cp resources/cert/* target/etc/apache2/certs + mkdir -p target/usr/lib/x86_64-linux-gnu/ && cp resources/lib/libjwt.so.1.7.0 target/usr/lib/x86_64-linux-gnu/libjwt.so.1 + mkdir -p target/usr/local/apache2/modules/ && cp resources/modules/mod_authnz_jwt.so target/usr/local/apache2/modules/mod_authnz_jwt.so + mkdir -p target//etc/apache2/mods-enabled/ && cp resources/mods-enabled/auth_jwt.load target/etc/apache2/mods-enabled/auth_jwt.load + docker build . -t onap/org.onap.integration.simulators.pmhttpsserver + @echo "##### DONE #####" +start: + @echo "##### Start PM Https Server #####" + docker-compose -f docker-compose.yml up + @echo "##### DONE #####" +stop: + @echo "##### Stop PM Https Server #####" + docker-compose -f docker-compose.yml down + rm -rf ~/httpservervolumes/ || true + @echo "##### DONE #####" +upload-file: + @echo "##### Upload file to PM Https Server #####" + curl -F "uploaded_file=@./resources/E_VES_bulkPM_IF_3GPP_3_example_1.xml.gz" -u demo:demo123456! http://localhost:32080/upload.php + @echo "\n##### DONE #####" +clean: + rm -rf target
\ No newline at end of file |