-
Notifications
You must be signed in to change notification settings - Fork 58
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
Showing
17 changed files
with
110 additions
and
121 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
2 changes: 1 addition & 1 deletion
2
lab/machines/p-ftp-01/files/execute.sh → lab/machines/c-backup-01/files/execute.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
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,37 @@ | ||
CREATE DATABASE IF NOT EXISTS customers; | ||
|
||
use customers; | ||
|
||
CREATE TABLE acme_hyper_branding( | ||
id INT AUTO_INCREMENT, | ||
first_name VARCHAR(100), | ||
last_name VARCHAR(100), | ||
designation VARCHAR(100), | ||
email VARCHAR(50), | ||
password VARCHAR(20), | ||
PRIMARY KEY(id) | ||
); | ||
|
||
CREATE TABLE acme_impact_alliance(id INT AUTO_INCREMENT, | ||
first_name VARCHAR(100), | ||
last_name VARCHAR(100), | ||
designation VARCHAR(100), | ||
email VARCHAR(50), | ||
password VARCHAR(20), | ||
PRIMARY KEY(id) | ||
); | ||
|
||
INSERT INTO acme_hyper_branding (`first_name`, `last_name`, `designation`, `email`, `password`) VALUES ("Jacob", "Taylor", "Founder", "[email protected]", "carmen"); | ||
INSERT INTO acme_hyper_branding (`first_name`, `last_name`, `designation`, `email`, `password`) VALUES ("Sarah", "Lewish", "Executive Assistant", "[email protected]", "cachepot"); | ||
INSERT INTO acme_hyper_branding (`first_name`, `last_name`, `designation`, `email`, `password`) VALUES ("Nicholas", "Young", "Influencer", "[email protected]", "spring2023"); | ||
INSERT INTO acme_hyper_branding (`first_name`, `last_name`, `designation`, `email`, `password`) VALUES ("Lauren", "Scott", "Influencer", "[email protected]", "gaga"); | ||
INSERT INTO acme_hyper_branding (`first_name`, `last_name`, `designation`, `email`, `password`) VALUES ("Aaron", "Peres", "Marketing Lead", "[email protected]", "aperes123"); | ||
INSERT INTO acme_hyper_branding (`first_name`, `last_name`, `designation`, `email`, `password`) VALUES ("Melissa", "Rogers", "Software Engineer", "[email protected]", "melissa2go"); | ||
|
||
INSERT INTO acme_impact_alliance (`first_name`, `last_name`, `designation`, `email`, `password`) VALUES ("Jane", "Torres", "Owner", "[email protected]", "asfim2ne7asd7"); | ||
INSERT INTO acme_impact_alliance (`first_name`, `last_name`, `designation`, `email`, `password`) VALUES ("Anthony", "Johnson", "Executive Assistant", "[email protected]", "3kemas8dh23"); | ||
INSERT INTO acme_impact_alliance (`first_name`, `last_name`, `designation`, `email`, `password`) VALUES ("David", "Carter", "Cat Rescuer", "[email protected]", "asdij28ehasds"); | ||
INSERT INTO acme_impact_alliance (`first_name`, `last_name`, `designation`, `email`, `password`) VALUES ("Benjamin", "Mitchell", "Cat Rescuer", "[email protected]", "2rnausdiuwhd"); | ||
INSERT INTO acme_impact_alliance (`first_name`, `last_name`, `designation`, `email`, `password`) VALUES ("Karen", "Cook", "Cat Rescuer", "[email protected]", "wdnausdb723bs"); | ||
INSERT INTO acme_impact_alliance (`first_name`, `last_name`, `designation`, `email`, `password`) VALUES ("Kevin", "Peterson", "Software Engineer", "[email protected]", "wudhasdg72ws"); | ||
|
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,3 +1,3 @@ | ||
CREATE DATABASE IF NOT EXISTS adminer_db; | ||
CREATE USER IF NOT EXISTS 'adminer_user'@'localhost' IDENTIFIED BY 'P@ssword321'; | ||
GRANT ALL ON adminer_db.* TO 'adminer_user'@'localhost'; | ||
GRANT ALL ON *.* TO 'adminer_user'@'localhost'; |
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 |
---|---|---|
@@ -1,17 +1,24 @@ | ||
FROM lab_base | ||
FROM redis:5.0.6 | ||
|
||
# Metadata | ||
LABEL name="c-redis-01" | ||
LABEL company="ACME Infinity Servers" | ||
|
||
# Install Required Packages | ||
RUN apt-get update -y --fix-missing | ||
RUN apt-get install -y redis-server | ||
RUN apt-get install -y openssh-server | ||
|
||
# Copy Files to Lab | ||
COPY --chown=root:root files/redis.conf /etc/redis/redis.conf | ||
|
||
# Post Actions | ||
RUN mkdir /root/.ssh/ | ||
RUN chmod 700 /root/.ssh | ||
|
||
RUN touch /root/.ssh/authorized_keys | ||
RUN chmod 644 /root/.ssh/authorized_keys | ||
|
||
# Entry | ||
ENTRYPOINT \ | ||
echo "Starting redis service..." && \ | ||
service redis-server start | ||
ENTRYPOINT service ssh restart \ | ||
&& \ | ||
redis-server /etc/redis/redis.conf |
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,59 +1,6 @@ | ||
activerehashing yes | ||
always-show-logo yes | ||
aof-load-truncated yes | ||
aof-rewrite-incremental-fsync yes | ||
aof-use-rdb-preamble no | ||
appendfilename "appendonly.aof" | ||
appendfsync everysec | ||
appendonly no | ||
auto-aof-rewrite-min-size 64mb | ||
auto-aof-rewrite-percentage 100 | ||
bind 0.0.0.0 | ||
client-output-buffer-limit normal 0 0 0 | ||
client-output-buffer-limit pubsub 32mb 8mb 60 | ||
client-output-buffer-limit slave 256mb 64mb 60 | ||
daemonize no | ||
databases 16 | ||
dbfilename dump.rdb | ||
dir ./ | ||
hash-max-ziplist-entries 512 | ||
hash-max-ziplist-value 64 | ||
hll-sparse-max-bytes 3000 | ||
hz 10 | ||
latency-monitor-threshold 0 | ||
lazyfree-lazy-eviction no | ||
lazyfree-lazy-expire no | ||
lazyfree-lazy-server-del no | ||
list-compress-depth 0 | ||
list-max-ziplist-size -2 | ||
logfile "" | ||
loglevel notice | ||
lua-time-limit 5000 | ||
no-appendfsync-on-rewrite no | ||
notify-keyspace-events "" | ||
pidfile /var/run/redis_6379.pid | ||
port 6379 | ||
protected-mode yes | ||
rdbchecksum yes | ||
rdbcompression yes | ||
repl-disable-tcp-nodelay no | ||
repl-diskless-sync-delay 5 | ||
repl-diskless-sync no | ||
save 300 10 | ||
save 60 10000 | ||
save 900 1 | ||
set-max-intset-entries 512 | ||
slave-lazy-flush no | ||
slave-priority 100 | ||
slave-read-only yes | ||
slave-serve-stale-data yes | ||
slowlog-log-slower-than 10000 | ||
slowlog-max-len 128 | ||
stop-writes-on-bgsave-error yes | ||
supervised systemd | ||
tcp-backlog 511 | ||
tcp-keepalive 300 | ||
timeout 0 | ||
zset-max-ziplist-entries 128 | ||
zset-max-ziplist-value 64 | ||
requirepass r3d1s! | ||
protected-mode no | ||
slave-read-only no |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.