-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up hello world environment, shrink it a little as well
- Loading branch information
1 parent
b954c53
commit 76ae30b
Showing
9 changed files
with
58 additions
and
60 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
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
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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo -e "\e[32mINFO sourcing $SCRIPTS_DIR\e[0m" | ||
for VAR in $(find ${SCRIPTS_DIR} -type f -name "*.sh"); do echo -e "\e[32mINFO sourcing $VAR\e[0m"; source $VAR; done; | ||
|
||
# Run a Function | ||
adjust_httpd_conf_servername | ||
|
||
# Last function to run should be starting httpd | ||
start | ||
|
||
function shutdown () { | ||
stop | ||
} | ||
|
||
trap 'shutdown' SIGTERM | ||
while true; do read; done; |
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,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Default Variables | ||
|
||
HTTPD_DIR=/etc/httpd | ||
HTTPD_CONF_DIR=$HTTPD_DIR/conf | ||
HTTPD_CONFD_DIR=$HTTPD_DIR/conf.d | ||
HTTPD_CONF_FILE=$HTTPD_CONF_DIR/httpd.conf | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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 |
---|---|---|
@@ -1 +1,12 @@ | ||
hello world! | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>yet another landing page</title> | ||
</head> | ||
<body> | ||
|
||
<h1>hello world!</h1> | ||
<p>lorem ipsum goes here, hah</p> | ||
|
||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
docker run \ | ||
-d -t \ | ||
--hostname=apache \ | ||
--name=apache \ | ||
-p 80:80 \ | ||
--hostname=apache \ | ||
--rm \ | ||
-p 8080:80 \ | ||
-m 64m \ | ||
apache:latest |