crocandr / docker-unimus Goto Github PK
View Code? Open in Web Editor NEWmy Unimus container for network device backup
my Unimus container for network device backup
Just an update on a download link to all older Unimus versions.
(as per the README comment)
Sorry, you can't build an image with an older unimus version, because I don't know the download URL for an older version.
All older Unimus version are available at http://unimus.net/download/x.x.x/Unimus.jar
For example, for 0.3.0: http://unimus.net/download/0.3.0/Unimus.jar
Versions older than 0.3.0 are not available, as they are old closed alpha/beta builds (4+ years old), and are no longer supported in any way.
Latest versions are always available at https://unimus.net/download/-%20Latest/Unimus.jar
We definitely always recommend running the latest stable version, but access to older versions is still available :)
Hi, I'm just wondering when you plan on building the beta2 image. Thanks.
Hi,
The docker container is missing the ping utility, so network scans gives a lot of these in the console:
ERROR 12 --- [ scan-11] net.unimus.core.service.scan.PingTester : Native ping call failed - unable to ping '10.0.0.191'. Reason = 'Cannot run program "ping": error=2, No such file or directory; cause: error=2, No such file or directory'
Hi,
Not specifically related to this repository, but with release of Unimus 2.0.0, there is a new "Unimus Core" distribution, which serves as the remote agent / remote proxy for the new "Zones" feature.
A separate container for Unimus Core (docker-unimus-core) would be much appreciated!
Going forward, links for Core distributions will be:
https://unimus.net/download-unimus-core/-%20Latest/Unimus-Core.jar - latest stable release
https://unimus.net/download-unimus-core/x.x.x/Unimus-Core.jar - history of stable releases
https://unimus.net/download-unimus-core/dev-builds/Unimus-Core.jar - development releases
Development releases for Unimus with Zones support, as well as Unimus Core are already available at https://unimus.net/download-dev.
Since this is new, documentation is still lacking, but will be available here soon:
https://wiki.unimus.net/display/UNPUB/Architecture+overview
https://wiki.unimus.net/display/UNPUB/Zones
Currently documentation states to use HSQL container with:
-e /srv/unimus/config:/etc/unimus/
This should likely be -v
. Currently each restart/spawn of HSQL container will lose all settings and the HSQL DB, since those are kept in /etc/unimus
and not persisted.
Hello,
I have installed Unimus using the docker-compose file, everything is fine but I have the following problems:
If I try to expose port 8085 to port 80, I can't access the installation wizard (during startup). By keeping the basic configuration to port 8085, the wizard is reachable.
When I type the license key and the wizard tries to check the validity of it, that fails. In my infra, the VM under CentOS 7, is behind a Proxy. According to your documentation, we have to configure the /etc/default/unimus
file. Impossible to find it at the indicated location, I found one in the docker directory .config/unimus.properties
[root@unimus]:/data/docker-unimus $ cat config/unimus.properties
# Unimus config file
# Defines each logging file size in MB, valid values are 1 ~ 2047
logging.file.size = 50
# Defines the number of maximum logging files, valid values are 2 ~ 2147483647
logging.file.count = 9
# Core connection server port
core.connection.server.port = 5509
# Proxy
# Proxy
http.proxyHost=xxx.xxx.xxx
http.proxyHost=xxx.xxx.xxx
http.proxyPort=80
http.proxyPort=80
https.proxyHost=xxx.xxx.xxx
https.proxyHost=xxx.xxx.xxx
https.proxyPort=80
https.proxyPort=80
So I added the proxy configuration, however what is very strange, when I stop the docker-compose and restart it, it duplicates the configuration lines I added.
Hi,
I would like to request the ability of installing this container in Kubernetes via an helm chart.
More information: https://helm.sh/docs/topics/charts/
Can you please add this build for upgrading? Because in current version there is a bug with Mikrotik Free license.
https://drive.google.com/drive/folders/1RRzpYInJzjMBkaokbDISTL00NbXxGpvD
Dev builds of Unimus are always available at:
https://unimus.net/download/dev-builds/download.html
Specifically the latest dev .jar is always available at:
https://unimus.net/download/dev-builds/Unimus.jar
These are updated periodically (sometimes daily), with the current dev version always available at https://unimus.net/download/dev-builds/Unimus.dev.version
While we don't advise to run these builds in production environments, it could be useful for users to have periodic access to dev builds for testing purposes.
Hi,
Not sure if this should be here or the forum but your example docker run command includes
-v /srv/unimus/db:/var/unimus/hsql
however the hsql database has been moved from /var/unimus/hsql to /etc/unimus/hsql so the second volume mount is no longer needed as the first provides both the DB and config files.
Hi, my container exits immediately after starting and the log shows a jarfile error. If you could point me in the right direction I would appreciate it. Thank you.
siteadmin@opengear-mobile-network:~$ sudo docker container start 0ec7afdd255d
siteadmin@opengear-mobile-network:~$ sudo docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
0ec7afdd255d croc/unimus "/bin/sh -c /opt/sta…" 48 minutes ago Exited (1) 4 seconds ago unimus
00e249e59f59 ubuntu "/bin/bash" 5 days ago Up 5 days elated_swartz
siteadmin@opengear-mobile-network:~$ sudo docker logs -f 0ec7afdd255d
Error: Invalid or corrupt jarfile /opt/unimus.jar
siteadmin@opengear-mobile-network:~$ sudo docker container inspect 0ec7afdd255d
[
{
"Id": "0ec7afdd255d1f177f75b164c00458cf0912f8fb63ab87cedb5cfc98f5ef51fb",
"Created": "2021-03-02T01:04:35.4834771Z",
"Path": "/bin/sh",
"Args": [
"-c",
"/opt/start.sh"
],
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 1,
"Error": "",
"StartedAt": "2021-03-02T01:53:02.941575197Z",
"FinishedAt": "2021-03-02T01:53:02.939503957Z"
},
"Image": "sha256:61eda0109f99eecd38a8e5301bac148677da8e34402980ffabca6125d682e371",
"ResolvConfPath": "/mnt/nvram/docker/containers/0ec7afdd255d1f177f75b164c00458cf0912f8fb63ab87cedb5cfc98f5ef51fb/resolv.conf",
"HostnamePath": "/mnt/nvram/docker/containers/0ec7afdd255d1f177f75b164c00458cf0912f8fb63ab87cedb5cfc98f5ef51fb/hostname",
"HostsPath": "/mnt/nvram/docker/containers/0ec7afdd255d1f177f75b164c00458cf0912f8fb63ab87cedb5cfc98f5ef51fb/hosts",
"LogPath": "/mnt/nvram/docker/containers/0ec7afdd255d1f177f75b164c00458cf0912f8fb63ab87cedb5cfc98f5ef51fb/0ec7afdd255d1f177f75b164c00458cf0912f8fb63ab87cedb5cfc98f5ef51fb-json.log",
"Name": "/unimus",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/home/siteadmin/docker-unimus-master/db:/var/unimus/hsql",
"/home/siteadmin/docker-unimus-master/config:/etc/unimus/"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {
"max-size": "10m"
}
},
"NetworkMode": "default",
"PortBindings": {
"8085/tcp": [
{
"HostIp": "",
"HostPort": "8085"
}
]
},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"Capabilities": null,
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DeviceRequests": null,
"KernelMemory": 0,
"KernelMemoryTCP": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": {
"LowerDir": "/mnt/nvram/docker/overlay2/5ffb893e52074848168f19c8759442479ec0995b29f90ba39febcaff1bb32080-init/diff:/mnt/nvram/docker/overlay2/ebfd9dfe1d97373433919bded2b1a5f117a7581ff48163f61429d1844be002b1/diff:/mnt/nvram/docker/overlay2/b7fec643d252f304bac1c1bb0d817cef58762eb7214116c652c57b016b3f0ed7/diff:/mnt/nvram/docker/overlay2/58aac220e356cac0a2c91460212ac903680309f71c1ac2132f53da89c43e8a47/diff:/mnt/nvram/docker/overlay2/e0edc499c5f07aec4e7cef86f5f0a30092b13046364d614460e3d535955ecaf0/diff:/mnt/nvram/docker/overlay2/6c9302f9ffe4bbf536f82853026940ebb402cc1cb2fa6a3f50555cdf75276f70/diff:/mnt/nvram/docker/overlay2/107b466d0a7785b98bb62debf28d8f6d231cfdda81836d669c818ecbf94e24a3/diff",
"MergedDir": "/mnt/nvram/docker/overlay2/5ffb893e52074848168f19c8759442479ec0995b29f90ba39febcaff1bb32080/merged",
"UpperDir": "/mnt/nvram/docker/overlay2/5ffb893e52074848168f19c8759442479ec0995b29f90ba39febcaff1bb32080/diff",
"WorkDir": "/mnt/nvram/docker/overlay2/5ffb893e52074848168f19c8759442479ec0995b29f90ba39febcaff1bb32080/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "/home/siteadmin/docker-unimus-master/db",
"Destination": "/var/unimus/hsql",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/home/siteadmin/docker-unimus-master/config",
"Destination": "/etc/unimus",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "0ec7afdd255d",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"8085/tcp": {}
},
"Tty": true,
"OpenStdin": true,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"DOWNLOAD_URL=https://unimus.net/download-unimus/-%20Latest/Unimus.jar"
],
"Cmd": null,
"Image": "croc/unimus",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/bin/sh",
"-c",
"/opt/start.sh"
],
"OnBuild": null,
"Labels": {}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "fdb8687ad4ae530ded6443ac475547f3066b176e074ad82f7927f235aa3fd1e2",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/fdb8687ad4ae",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "200c6a06417cf04bb9cdf908fac9ecac201f6fedebe829d9581ff475430bf305",
"EndpointID": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "",
"DriverOpts": null
}
}
}
}
]
I would love to use this image on arm64 hardware, but it's not currently supported.
Hey there,
This is quite useful, can we publish a link to this on our Wiki (https://wiki.unimus.net/display/UNPUB/Running+in+Docker)?
Thanks!
https://wiki.unimus.net/display/UNPUB/Changing+default+timeouts
Add instructions how to change default timeouts for docker container.
You shold add env variable JAVA_OPTS=-Dunimus.core.connect-timeout=20000 -Dunimus.core.inter-connection-delay=1000 -Dunimus.core.cli-expect-timeout=30000
It would be useful to allow setting memory limitations for the Unimus container.
This is configured through the main java run command:
java -Xms256M -Xmx768M -jar Unimus.jar
Xms specifies startup memory allocation.
Xmx specifies maximum memory allocation limit.
Sizing and configuration documentations are available here:
https://wiki.unimus.net/display/UNPUB/Hardware+requirements
https://wiki.unimus.net/display/UNPUB/Configuring+memory+usage
By default, I would recommend -Xms256M -Xmx768M
, with options for users to set higher limits if needed (things like -Xmx2G
will work as well).
Hi there,
Due to the rate limits in place at hub.docker.com, I would kindly ask for this image to be pushed to alternative registries too, like Github Docker Registry, quay.io.
Otherwise when deploying a lot of containers in a close time frame, you will hit the rate limits and thus unable to pull the image.
Hi, I tried to upgrade my Unimus 1 docker running on Synology NAS, but after I restart, I only get
Error: Invalid or corrupt jarfile /opt/unimus.jar
in the log and it constantly restarts.
How can I override the Entrypoint so it doesnt try to run the /opt/start.sh and then I can open a shell to fix the bad jar file?
I dont know why it failed, I did the
curl https://unimus.net/download/-%20Latest/Unimus.jar -o /opt/unimus.jar
command which appeared to succeed. I do see a thread on Uniumus community about bad jar files, but it seems to have been back in April.
Any help most welcome, I dont want to lose this instance as its using the internal database....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.