2017-03-14

Slitaz64 -- SliTaz Web Server

SliTaz Web Server


 
docker pull slitaz/slitaz-lighttpd
https://hub.docker.com/r/slitaz/slitaz-lighttpd/
http://doc.slitaz.org/en:handbook:webserver

tux@slitaz:~$ docker run -d -P slitaz/slitaz-lighttpd
Unable to find image 'slitaz/slitaz-lighttpd:latest' locally
latest: Pulling from slitaz/slitaz-lighttpd

986f76552751: Pull complete
443082f2095a: Pull complete
2a39471c7bf0: Pull complete
Digest: sha256:ebf93fa93f15acb18b0b1d74f88d416fd3a1c181bdecc7ab266b9c9102b1c42d
Status: Downloaded newer image for slitaz/slitaz-lighttpd:latest
81b7262138595b2f066f337aab3c865d9dfe5710a7b32e6f2f3aa05e55512c03

tux@slitaz:~$ docker ps
CONTAINER ID        IMAGE                    COMMAND                  CREATED             STATUS              PORTS                   NAMES
81b726213859        slitaz/slitaz-lighttpd   "lighttpd -D -f /etc/"   8 minutes ago       Up 8 minutes        0.0.0.0:32769->80/tcp   small_sinoussi

tux@slitaz:~$ ps | grep proxy
 2504 root       0:00 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 32769 -container-ip 172.17.0.2 -container-port 80
tux@slitaz:~$ 

 

2017-03-01

Slitaz64 -- CaaS - Container-as-a-Service



CaaS - Container-as-a-Service


ARUKAS CLOUD is DOCKER HOSTING
https://arukas.io/en/
Arukas is the simplest-to-use Container-as-a-Service that makes it easy to deploy and manage apps at scale.
Deploy apps right out of the box
Get started for free
https://app.arukas.io/sign_up/

1. Create application


2. Start application

 


3. Application up and running


 

4. ssh login


tux@slitaz:~$ ssh -p 31382 root@153.125.239.144
Host '153.125.239.144' is not in the trusted hosts file.
(ecdsa-sha2-nistp256 fingerprint md5 4e:89:a7:c0:69:64:12:13:72:d6:af:18:53:af:e1:89)
Do you want to continue connecting? (y/n) y
root@153.125.239.144's password:
Welcome to the Open Source World!
SliTaz GNU/Linux is distributed in the hope that it will be useful,
but with ABSOLUTELY NO WARRANTY.


5.
root@c1ee9ae00198:~# tazpkg -lf openssh
Installed files by: openssh
======================================================================
/etc/init.d/openssh
/etc/ssh/moduli
/etc/ssh/ssh_config
/etc/ssh/sshd_config
/usr/bin/scp
/usr/bin/sftp
/usr/bin/ssh
/usr/bin/ssh-add
/usr/bin/ssh-agent
/usr/bin/ssh-keygen
/usr/bin/ssh-keyscan
/usr/sbin/ssh-keysign
/usr/sbin/ssh-pkcs11-helper
/usr/sbin/sshd
======================================================================
14 files installed with openssh


6.
root@c1ee9ae00198:~# slitaz
SliTaz GNU/Linux
===========================================================================
Release      : 5.0
Architecture : x86_64
Kernel       : 4.8.17-coreos-r1
Machine type : x86_64
Home path    : /home/slitaz
Configs      : /etc/slitaz
Main config  : /etc/slitaz/slitaz.conf
Log files    : /var/log/slitaz
Packages DB  : /var/lib/tazpkg
Installed    : 10 packages
Mirror       : http://slitaz64.96.lt/packages/
System date  : Tue Feb 28 14:47:35 UTC 2017
--------------
Boot options : rootflags=rw mount.usrflags=ro BOOT_IMAGE=/coreos/vmlinuz initrd=/coreos/cpio.gz
===========================================================================


7.
root@c1ee9ae00198:~# uname -a
Linux c1ee9ae00198 4.8.17-coreos-r1 #1 SMP Thu Feb 2 01:17:06 UTC 2017 x86_64 GNU/Linux

root@c1ee9ae00198:~# exit
tux@slitaz:~$ uname -a
Linux slitaz 3.16.36-slitaz64 #1 SMP Fri Oct 7 13:26:22 UTC 2016 x86_64 GNU/Linux
tux@slitaz:~$

Slitaz -- Release: 6.0

Release: 6.0

http://roadmap.slitaz.org/

Tasks: 3 in total - 1 finished - 2 todo

Tasks lists are ordered by priority. Please read the README for more information about the SliTaz Roadmap web interface and Hg repo.


Goals

Release 6.0 in 2017 - Overall improvment and polishment. Bunch of home made features and tools such as TazPanel, Cookutils, Tazbox.

Tasks List: TODO

Publish a new Cooking and RCs

People    : All

Publish new RC's then fix latest bugs then go for stable 6.0

Publish a new Cooking and RCs

People    : All

Write the release notes for stable 6.0 on the wiki first then in
static HTML to be include in slitaz-doc package.

Tasks List: DONE

Add a bunch of new packages

People    : All

As of Feb 2017 we have 5276 packages, which is very nice!
 



slitaz-forge log

http://hg.slitaz.org/slitaz-forge/

age author description
28 hours ago Paul Issott Tiny edits default tip
46 hours ago Paul Issott roadmap: tiny edits
2 days ago Christophe Lincoln Add a already done task about new packages
2 days ago Christophe Lincoln Add roadmap for 6.0 (use it to add latest needed tasks)
7 days ago Pascal Bellard search.sh: clouds cache (again)
7 days ago Pascal Bellard search.sh: clouds cache (again)
7 days ago Paul Issott /scn: tiny edits
7 days ago Christophe Lincoln Small misc changes
7 days ago Christophe Lincoln More fixes to sdt plugin
7 days ago Christophe Lincoln Small fixes to sdt plugin
7 days ago Christophe Lincoln Up SCN style and add sdt plugin

2017-02-21

Slitaz64 -- slitaz/slitaz-ssh


slitaz/slitaz-ssh
https://hub.docker.com/r/slitaz/slitaz-ssh/

docker pull slitaz/slitaz-ssh

openssh client/server
ID/PASSWD : root/root


1.
tux@slitaz:~$ docker run --help | egrep '\-d,|\-P,'
-d, --detach Run container in background and print container ID
-P, --publish-all Publish all exposed ports to random ports

tux@slitaz:~$ docker run -d -P slitaz/slitaz-ssh
Unable to find image 'slitaz/slitaz-ssh:latest' locally
latest: Pulling from slitaz/slitaz-ssh
986f76552751: Pull complete
0226342fb824: Pull complete
c506367a6559: Pull complete
babe5d634668: Pull complete
Digest: sha256:b159db8c7371602c7609cfc04e752d5a3ea4610bef57b76c75174b76d67fca8b
Status: Downloaded newer image for slitaz/slitaz-ssh:latest
b32fc1ef623c43363871ddef19b3622c445f0ad9211bc31833ae17701c9cbb65


2.
tux@slitaz:~$ docker ps
CONTAINER ID        IMAGE               COMMAND               CREATED             STATUS              PORTS                   NAMES
b32fc1ef623c        slitaz/slitaz-ssh   "/usr/sbin/sshd -D"   12 seconds ago      Up 11 seconds       0.0.0.0:32768->22/tcp   tender_curie

tux@slitaz:~$ docker inspect b32f | grep IPAd
            "SecondaryIPAddresses": null,
            "IPAddress": "172.17.0.2",
                    "IPAddress": "172.17.0.2",


3.
tux@slitaz:~$ ssh root@172.17.0.2
Host '172.17.0.2' is not in the trusted hosts file.
(ecdsa-sha2-nistp256 fingerprint md5 4e:89:a7:c0:69:64:12:13:72:d6:af:18:53:af:e1:89)
Do you want to continue connecting? (y/n) y
root@172.17.0.2's password:
Welcome to the Open Source World!
SliTaz GNU/Linux is distributed in the hope that it will be useful,
but with ABSOLUTELY NO WARRANTY.


4.
root@b32fc1ef623c:~# tazpkg -l
List of all installed packages
================================================================================
busybox                            1.23.2            base-system
gettext-base                       0.19.4            base-system
glibc-base                         2.19              base-system
libcrypto                          1.0.1q            security
ncurses-common                     5.9               base-system
openssh                            7.2p2             security
sftp-server                        7.2p2             security
slitaz-base-files                  309               base-system
tazpkg                             5.3.3             base-system
zlib                               1.2.8             base-system
================================================================================
10 packages installed.

root@b32fc1ef623c:~#

Slitaz64 -- Docker Dockerfile

Docker Dockerfile
 
Public | Automated Build
slitaz/slitaz-ssh

https://hub.docker.com/r/slitaz/slitaz-ssh/~/dockerfile/
https://github.com/alanyih/slitaz-ssh/blob/master/Dockerfile


Dockerfile
FROM slitaz/slitaz-base:latest 

RUN tazpkg -gi openssh && \
 tazpkg -cc

RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \
 sed -i 's/#PasswordAuthentication/PasswordAuthentication/' /etc/ssh/sshd_config 

RUN mkdir -p /var/run/sshd

EXPOSE 22/tcp 

CMD ["/usr/sbin/sshd", "-D"]

Logs
https://hub.docker.com/r/slitaz/slitaz-ssh/builds/b2dk4xcv73ytqk8tzvypq5t/
Building in Docker Cloud's infrastructure...
Cloning into '.'...
KernelVersion: 4.4.0-59-generic
Os: linux
BuildTime: 2017-01-10T23:09:49.630531934+00:00
ApiVersion: 1.24
Version: 1.12.6-cs6
GitCommit: 712e864
Arch: amd64
GoVersion: go1.6.4
Starting build of index.docker.io/slitaz/slitaz-ssh:latest...
Step 1 : FROM slitaz/slitaz-base:latest
---> 50236ce3c843
Step 2 : RUN tazpkg -gi openssh && tazpkg -cc
---> Running in 04af6e5b65f6
[..]