Conan: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
==Install== | |||
{| | |||
| valign="top" | | |||
'''Linux:''' | |||
export JFROG_HOME=/srv/jfrog | |||
| valign="top" | | |||
'''MacOS:''' | |||
export JFROG_HOME=$HOME/jfrog | |||
|} | |||
===Volumes=== | |||
{| class="wikitable sortable" | |||
|- | |||
! Local location !! Container location !! Usage | |||
|- | |||
| <code>$JFROG_HOME/conan7/var/</code> || <code>/var/opt/jfrog/artifactory</code> || Application Data | |||
|} | |||
<source lang="bash"> | |||
docker run --detach \ | |||
--publish 9040:8081 \ | |||
--publish 9041:8082 \ | |||
--name conan \ | |||
--volume $JFROG_HOME/conan7/var/:/var/opt/jfrog/artifactory \ | |||
docker.bintray.io/jfrog/artifactory-oss:latest | |||
</source> | |||
===Debian=== | |||
<source lang="bash"> | |||
docker run --detach \ | |||
--publish 9040:8081 \ | |||
--publish 9041:8082 \ | |||
--name conan \ | |||
--restart always \ | |||
--volume $JFROG_HOME/conan7/var/:/var/opt/jfrog/artifactory \ | |||
docker.bintray.io/jfrog/artifactory-oss:7.6.3 | |||
</source> | |||
===CentOS=== | |||
<source lang="bash"> | |||
docker run --detach \ | |||
--publish 9040:8081 \ | |||
--publish 9041:8082 \ | |||
--name conan \ | |||
--restart always \ | |||
--volume $JFROG_HOME/conan7/var/:/var/opt/jfrog/artifactory:Z \ | |||
docker.bintray.io/jfrog/artifactory-oss:7.6.3 | |||
</source> | |||
==Apache Proxy== | |||
===CentOS 7=== | |||
<code>vim /etc/apache2/sites-enabled/01-cid.chorke.org-le-ssl.conf</code> | |||
<source lang="apache" highlight="5,8-10"> | |||
<IfModule mod_ssl.c> | |||
<VirtualHost *:443> | |||
SSLProxyEngine On | |||
ProxyRequests Off | |||
SSLProxyVerify None | |||
ProxyPreserveHost On | |||
AllowEncodedSlashes On | |||
SSLProxyCheckPeerCN Off | |||
SSLProxyCheckPeerName Off | |||
SSLProxyCheckPeerExpire Off | |||
# more others config skipped | |||
<Location /ui> | |||
Order Allow,Deny | |||
Allow from all | |||
ProxyPass http://localhost:9041/ui nocanon | |||
ProxyPassReverse http://localhost:9041/ui | |||
</Location> | |||
<Location /artifactory> | |||
Order Allow,Deny | |||
Allow from all | |||
ProxyPass http://localhost:9040/artifactory nocanon | |||
ProxyPassReverse http://localhost:9040/artifactory | |||
</Location> | |||
Include /etc/letsencrypt/options-ssl-apache.conf | |||
SSLCertificateFile /etc/letsencrypt/live/cid.chorke.org/cert.pem | |||
SSLCertificateKeyFile /etc/letsencrypt/live/cid.chorke.org/privkey.pem | |||
SSLCertificateChainFile /etc/letsencrypt/live/cid.chorke.org/chain.pem | |||
</VirtualHost> | |||
</IfModule> | |||
</source> | |||
<syntaxhighlight lang="bash"> | |||
apachectl -t | |||
systemctl reload httpd | |||
systemctl restart httpd | |||
# http://cid.chorke.org/artifactory/webapp/#/login@admin/password | |||
</syntaxhighlight> | |||
==To Run== | |||
<syntaxhighlight lang="bash"> | |||
docker exec -it conan bash | |||
docker start conan | |||
docker stop conan | |||
</syntaxhighlight> | |||
==To Do== | |||
<source lang="bash"> | <source lang="bash"> | ||
yay -S conan | yay -S conan | ||
Line 15: | Line 118: | ||
conan new academia/1.0.0 -t | conan new academia/1.0.0 -t | ||
conan remote add chorke https:// | conan remote add chorke https://cid.chorke.org/artifactory/api/conan/conan-local | ||
conan upload academia/1.0.0@diego/testing -r=chorke --all | conan upload academia/1.0.0@diego/testing -r=chorke --all | ||
Line 25: | Line 128: | ||
cmake --build . --config Release | cmake --build . --config Release | ||
</source> | </source> | ||
== Knowledge == | |||
<syntaxhighlight lang="bash"> | |||
# filter and remove docker images, containers | |||
docker rm $(docker ps --all -q -f status=dead) | |||
docker rmi $(docker images -qa -f 'dangling=true') | |||
docker rm artifactory && docker rmi docker.bintray.io/jfrog/artifactory-oss:4.1.0 | |||
# docker container debug, checking history & service | |||
docker run --name='artifactory' -it docker.bintray.io/jfrog/artifactory-oss:4.1.0 | |||
docker history docker.bintray.io/jfrog/artifactory-oss:4.1.0 | |||
docker exec -it conan bash | |||
service --status-all | |||
</syntaxhighlight> | |||
==References== | ==References== |
Revision as of 09:39, 24 August 2020
Install
Linux: export JFROG_HOME=/srv/jfrog |
MacOS: export JFROG_HOME=$HOME/jfrog |
Volumes
Local location | Container location | Usage |
---|---|---|
$JFROG_HOME/conan7/var/ |
/var/opt/jfrog/artifactory |
Application Data |
docker run --detach \
--publish 9040:8081 \
--publish 9041:8082 \
--name conan \
--volume $JFROG_HOME/conan7/var/:/var/opt/jfrog/artifactory \
docker.bintray.io/jfrog/artifactory-oss:latest
Debian
docker run --detach \
--publish 9040:8081 \
--publish 9041:8082 \
--name conan \
--restart always \
--volume $JFROG_HOME/conan7/var/:/var/opt/jfrog/artifactory \
docker.bintray.io/jfrog/artifactory-oss:7.6.3
CentOS
docker run --detach \
--publish 9040:8081 \
--publish 9041:8082 \
--name conan \
--restart always \
--volume $JFROG_HOME/conan7/var/:/var/opt/jfrog/artifactory:Z \
docker.bintray.io/jfrog/artifactory-oss:7.6.3
Apache Proxy
CentOS 7
vim /etc/apache2/sites-enabled/01-cid.chorke.org-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
SSLProxyEngine On
ProxyRequests Off
SSLProxyVerify None
ProxyPreserveHost On
AllowEncodedSlashes On
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
SSLProxyCheckPeerExpire Off
# more others config skipped
<Location /ui>
Order Allow,Deny
Allow from all
ProxyPass http://localhost:9041/ui nocanon
ProxyPassReverse http://localhost:9041/ui
</Location>
<Location /artifactory>
Order Allow,Deny
Allow from all
ProxyPass http://localhost:9040/artifactory nocanon
ProxyPassReverse http://localhost:9040/artifactory
</Location>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/cid.chorke.org/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/cid.chorke.org/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/cid.chorke.org/chain.pem
</VirtualHost>
</IfModule>
apachectl -t
systemctl reload httpd
systemctl restart httpd
# http://cid.chorke.org/artifactory/webapp/#/login@admin/password
To Run
docker exec -it conan bash
docker start conan
docker stop conan
To Do
yay -S conan
pip install conan
brew install conan
mkdir build; cd build
conan install ..
conan info ..
conan search ..
conan search zlib/1.2.8@lasote/stable
conan .. -G "Visual Studio 14 Win64"
conan new academia/1.0.0 -t
conan remote add chorke https://cid.chorke.org/artifactory/api/conan/conan-local
conan upload academia/1.0.0@diego/testing -r=chorke --all
conan remove "*" -f
conan search
cmake --build . --config Release
conan install ..
cmake --build . --config Release
Knowledge
# filter and remove docker images, containers
docker rm $(docker ps --all -q -f status=dead)
docker rmi $(docker images -qa -f 'dangling=true')
docker rm artifactory && docker rmi docker.bintray.io/jfrog/artifactory-oss:4.1.0
# docker container debug, checking history & service
docker run --name='artifactory' -it docker.bintray.io/jfrog/artifactory-oss:4.1.0
docker history docker.bintray.io/jfrog/artifactory-oss:4.1.0
docker exec -it conan bash
service --status-all
References
|