Skip to content

Commit

Permalink
Merge pull request #4 from vroncevic/dev
Browse files Browse the repository at this point in the history
[samba_manager] Updated Dockerfile, docs
  • Loading branch information
vroncevic committed Jun 14, 2020
2 parents 685e739 + 21d432f commit b4f62fc
Show file tree
Hide file tree
Showing 57 changed files with 3,526 additions and 932 deletions.
30 changes: 29 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,32 @@

FROM debian:10
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends install samba tree htop
RUN DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
tree \
htop \
wget \
unzip \
ca-certificates \
openssl \
samba

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/samba_manager/ver.1.0/
RUN mkdir /root/bin/
RUN cp -R /sh_tool/bin/ /root/scripts/samba_manager/ver.1.0/
RUN cp -R /sh_tool/conf/ /root/scripts/samba_manager/ver.1.0/
RUN cp -R /sh_tool/log/ /root/scripts/samba_manager/ver.1.0/
RUN rm -Rf /sh_tool/
RUN chmod -R 755 /root/scripts/samba_manager/ver.1.0/
RUN ln -s /root/scripts/samba_manager/ver.1.0/bin/samba_manager.sh /root/bin/samba_manager
RUN tree /root/scripts/samba_manager/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 @@
# Samba server management.

samba_manager is shell tool for control/operating Samba Server.
***samba_manager*** is shell tool for control/operating Samba 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/samba_manager.svg)](https://github.com/vroncevic/samba_manager/issues)
[![GitHub contributors](https://img.shields.io/github/contributors/vroncevic/samba_manager.svg)](https://github.com/vroncevic/samba_manager/graphs/contributors)

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

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

### INSTALLATION

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

Or You can use docker to create image/container.
![alt tag](https://raw.githubusercontent.com/vroncevic/samba_manager/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

samba_manager is based on MOP.
***samba_manager*** is based on MOP.

Shell tool structure:
```
Expand Down Expand Up @@ -78,8 +89,6 @@ More documentation and info at:

* https://samba_manager.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 @@ -90,5 +99,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: 52555cd8c475ffc2df25e6a6e0fb1f0e
config: 4b2b54739b9ea8a04cddd1d98456cd77
tags: 645f666f9bcd5a90fca523b33c5a78b7
100 changes: 86 additions & 14 deletions docs/build/html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,92 @@
.. samba_manager documentation master file, created by
sphinx-quickstart on Wed Apr 1 23:18:31 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to samba_manager's documentation!
=========================================
SAMBA_MANAGER
--------------

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

self


samba_manager is shell tool for control/operating Samba 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/samba_manager.svg
:target: https://github.com/vroncevic/samba_manager/issues

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

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

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

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

To install this set of modules type the following:

.. code-block:: bash
tar xvzf samba_manager-x.y.z.tar.gz
cd samba_manager-x.y.z
cp -R ~/sh_tool/bin/ /root/scripts/samba_manager/ver.1.0/
cp -R ~/sh_tool/conf/ /root/scripts/samba_manager/ver.1.0/
cp -R ~/sh_tool/log/ /root/scripts/samba_manager/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
---------------------
samba_manager is based on MOP.

Shell tool structure:

.. code-block:: bash
.
├── bin/
│   ├── nmb_operation.sh
│   ├── samba_manager.sh
│   ├── smb_info.sh
│   ├── smb_list.sh
│   ├── smb_operation.sh
│   ├── smb_version.sh
│   └── winbind_operation.sh
├── conf/
│   ├── samba_manager.cfg
│   └── samba_manager_util.cfg
└── log/
└── samba_manager.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

Copyright (C) 2018 by https://vroncevic.github.io/samba_manager

Indices and tables
==================
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.

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

0 comments on commit b4f62fc

Please sign in to comment.