Skip to content

Commit

Permalink
Merge pull request #3 from vroncevic/dev
Browse files Browse the repository at this point in the history
[atmanager] Updated util configuration, Dockerfile, docs
  • Loading branch information
vroncevic committed Jun 7, 2020
2 parents e0f5d4d + 08e8761 commit b581e42
Show file tree
Hide file tree
Showing 59 changed files with 3,522 additions and 934 deletions.
44 changes: 43 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,46 @@

FROM debian:10
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends apache2-dev tree htop
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
tree \
htop \
wget \
unzip \
ca-certificates \
openssl \
tar \
default-jdk \
curl

RUN mkdir /opt/tomcat
RUN groupadd tomcat
RUN useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat
RUN wget http://www-us.apache.org/dist/tomcat/tomcat-9/v9.0.35/bin/apache-tomcat-9.0.35.tar.gz
RUN tar xzvf apache-tomcat-9*tar.gz -C /opt/tomcat --strip-components=1
RUN chgrp -R tomcat /opt/tomcat/
RUN chmod -R g+r /opt/tomcat/conf/
RUN chmod g+x /opt/tomcat/conf/
RUN chown -R tomcat /opt/tomcat/webapps/
RUN chown -R tomcat /opt/tomcat/work/
RUN chown -R tomcat /opt/tomcat/temp/
RUN chown -R tomcat /opt/tomcat/logs/
RUN wget https://github.com/vroncevic/sh_util/archive/v1.0.0.zip
RUN unzip v1.0.0.zip
RUN find /sh_util-1.0.0/ -name "*.editorconfig" -type f -exec rm -Rf {} \;
RUN mkdir -p /root/scripts/sh_util/ver.1.0/
RUN cp -R /sh_util-1.0.0/sh_tool/bin/ /root/scripts/sh_util/ver.1.0/
RUN cp -R /sh_util-1.0.0/sh_tool/conf/ /root/scripts/sh_util/ver.1.0/
RUN cp -R /sh_util-1.0.0/sh_tool/log/ /root/scripts/sh_util/ver.1.0/
RUN rm -Rf v1.0.0.zip sh_util-1.0.0
RUN mkdir /sh_tool/
COPY sh_tool /sh_tool/
RUN find /sh_tool/ -name "*.editorconfig" -type f -exec rm -Rf {} \;
RUN mkdir -p /root/scripts/atmanager/ver.1.0/
RUN mkdir /root/bin/
RUN cp -R /sh_tool/bin/ /root/scripts/atmanager/ver.1.0/
RUN cp -R /sh_tool/conf/ /root/scripts/atmanager/ver.1.0/
RUN cp -R /sh_tool/log/ /root/scripts/atmanager/ver.1.0/
RUN rm -Rf /sh_tool/
RUN chmod -R 755 /root/scripts/atmanager/ver.1.0/
RUN ln -s /root/scripts/atmanager/ver.1.0/bin/atmanager.sh /root/bin/atmanager
RUN tree /root/scripts/atmanager/ver.1.0/
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Apache Tomcat Manager.

atmanager is shell tool for controling/operating Apache Tomcat Server.
***atmanager*** is shell tool for controlling/operating Apache Tomcat Server.

Developed in bash code: 100%.
Developed in bash code: ***100%***.

The README is used to introduce the tool and provide instructions on
how to install the tool, any machine dependencies it may have and any
Expand All @@ -11,6 +11,17 @@ other information that should be provided before the tool is installed.
[![GitHub issues open](https://img.shields.io/github/issues/vroncevic/atmanager.svg)](https://github.com/vroncevic/atmanager/issues)
[![GitHub contributors](https://img.shields.io/github/contributors/vroncevic/atmanager.svg)](https://github.com/vroncevic/atmanager/graphs/contributors)

<!-- START doctoc -->
**Table of Contents**

- [Installation](https://github.com/vroncevic/atmanager#installation)
- [Usage](https://github.com/vroncevic/atmanager#usage)
- [Dependencies](https://github.com/vroncevic/atmanager#dependencies)
- [Shell tool structure](https://github.com/vroncevic/atmanager#shell-tool-structure)
- [Docs](https://github.com/vroncevic/atmanager#docs)
- [Copyright and Licence](https://github.com/vroncevic/atmanager#copyright-and-licence)
<!-- END doctoc -->

### INSTALLATION

Navigate to release [page](https://github.com/vroncevic/atmanager/releases) download and extract release archive.
Expand All @@ -25,9 +36,9 @@ cp -R ~/sh_tool/conf/ /root/scripts/atmanager/ver.1.0/
cp -R ~/sh_tool/log/ /root/scripts/atmanager/ver.1.0/
```

Or You can use docker to create image/container.
![alt tag](https://raw.githubusercontent.com/vroncevic/atmanager/dev/docs/setup_tree.png)

:sparkles:
Or You can use docker to create image/container.

### USAGE

Expand All @@ -50,7 +61,7 @@ This tool requires these other modules and libraries:

### SHELL TOOL STRUCTURE

atmanager is based on MOP.
***atmanager*** is based on MOP.

Shell tool structure:
```
Expand All @@ -72,8 +83,6 @@ More documentation and info at:

* https://atmanager.readthedocs.io/en/latest/

:sparkles:

### COPYRIGHT AND LICENCE

[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
Expand All @@ -84,5 +93,3 @@ This tool is free software; you can redistribute it and/or modify
it under the same terms as Bash itself, either Bash version 4.2.47 or,
at your option, any later version of Bash 4 you may have available.

:sparkles:

Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: c3e5551d93051c0d24ca743d448dccf3
config: 912173595bd01366b64c15b7167d18bc
tags: 645f666f9bcd5a90fca523b33c5a78b7
93 changes: 79 additions & 14 deletions docs/build/html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,85 @@
.. atmanager documentation master file, created by
sphinx-quickstart on Sat Mar 28 19:31:20 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to atmanager's documentation!
=====================================
ATMANAGER
----------

.. toctree::
:maxdepth: 2
:caption: Contents:
:hidden:

self


atmanager is shell tool for controlling/operating Apache Tomcat Server.

Developed in bash code: 100%.

The README is used to introduce the tool and provide instructions on
how to install the tool, any machine dependencies it may have and any
other information that should be provided before the tool is installed.

|GitHub issues| |Documentation Status| |GitHub contributors|

.. |GitHub issues| image:: https://img.shields.io/github/issues/vroncevic/atmanager.svg
:target: https://github.com/vroncevic/atmanager/issues

.. |GitHub contributors| image:: https://img.shields.io/github/contributors/vroncevic/atmanager.svg
:target: https://github.com/vroncevic/atmanager/graphs/contributors

.. |Documentation Status| image:: https://readthedocs.org/projects/atmanager/badge/?version=latest
:target: https://atmanager.readthedocs.io/projects/atmanager/en/latest/?badge=latest

INSTALLATION
-------------
Navigate to release `page`_ download and extract release archive.

.. _page: https://github.com/vroncevic/atmanager/releases

To install this set of modules type the following:

.. code-block:: bash
tar xvzf atmanager-x.y.z.tar.gz
cd atmanager-x.y.z
cp -R ~/sh_tool/bin/ /root/scripts/atmanager/ver.1.0/
cp -R ~/sh_tool/conf/ /root/scripts/atmanager/ver.1.0/
cp -R ~/sh_tool/log/ /root/scripts/atmanager/ver.1.0/
DEPENDENCIES
-------------
This tool requires these other modules and libraries:

.. code-block:: bash
sh_util https://github.com/vroncevic/sh_util
SHELL TOOL STRUCTURE
---------------------
atmanager is based on MOP.

Shell tool structure:

.. code-block:: bash
.
├── bin/
│ └── atmanager.sh
├── conf/
│ ├── atmanager.cfg
│ └── atmanager_util.cfg
└── log/
└── atmanager.log
COPYRIGHT AND LICENCE
----------------------

|License: GPL v3| |License: Apache 2.0|

.. |License: GPL v3| image:: https://img.shields.io/badge/License-GPLv3-blue.svg
:target: https://www.gnu.org/licenses/gpl-3.0

.. |License: Apache 2.0| image:: https://img.shields.io/badge/License-Apache%202.0-blue.svg
:target: https://opensource.org/licenses/Apache-2.0

Indices and tables
==================
Copyright (C) 2018 by https://vroncevic.github.io/atmanager

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
This tool is free software; you can redistribute it and/or modify it
under the same terms as Bash itself, either Bash version 4.2.47 or,
at your option, any later version of Bash 4 you may have available.

0 comments on commit b581e42

Please sign in to comment.