Git Product home page Git Product logo

awx-build-deb's Introduction

valet.sh

Documentation

See https://valet.sh

Installation

for Ubuntu and MacOS (Intel)

bash <(curl -fsSL https://raw.githubusercontent.com/valet-sh/install/master/install.sh)

At the moment valet.sh on Apple m1 requires rosetta2:

/usr/sbin/softwareupdate --install-rosetta --agree-to-license
bash <(curl -fsSL https://raw.githubusercontent.com/valet-sh/install/master/install.sh)

Usage

See command descriptions when executing valet.sh

Usage:
  command [options] [command] [arguments]

awx-build-deb's People

Contributors

dittertp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

kapouer sepahewe

awx-build-deb's Issues

Not able to build debain/ubuntu package

Hi Team,

I have ran the debian package builder using ansible playbook and it ran till build-awx-package step ,but further its not going only because of the below error.

Error says install python-setuptools but i have already installed ,even though its not running.
[build-awx-package --- In this step its says successful ,but do not see this directory /tmp/awx-build/awx-logos/awx/ui/client/assets/logo-login.svg under /tmp folder.

can you please help me on this?

TASK [build-awx-package : Copy official AWX logos] *********************************************************************************************************************************************************
ok: [awx-debian-build] => (item={u'rusr': True, u'uid': 0, u'rgrp': True, u'xoth': False, u'islnk': False, u'woth': False, u'nlink': 1, u'issock': False, u'mtime': 1555059672.630828, u'gr_name': u'root', u'path': u'/tmp/awx-build/awx-logos/awx/ui/client/assets/logo-login.svg', u'xusr': False, u'atime': 1555059673.1268194, u'inode': 9834212, u'isgid': False, u'size': 38676, u'isdir': False, u'ctime': 1555059672.630828, u'roth': True, u'isblk': False, u'xgrp': False, u'isuid': False, u'dev': 2050, u'wgrp': False, u'isreg': True, u'isfifo': False, u'mode': u'0644', u'pw_name': u'root', u'gid': 0, u'ischr': False, u'wusr': True})
ok: [awx-debian-build] => (item={u'rusr': True, u'uid': 0, u'rgrp': True, u'xoth': False, u'islnk': False, u'woth': False, u'nlink': 1, u'issock': False, u'mtime': 1555059672.630828, u'gr_name': u'root', u'path': u'/tmp/awx-build/awx-logos/awx/ui/client/assets/logo-header.svg', u'xusr': False, u'atime': 1555059673.1268194, u'inode': 9834211, u'isgid': False, u'size': 38676, u'isdir': False, u'ctime': 1555059672.630828, u'roth': True, u'isblk': False, u'xgrp': False, u'isuid': False, u'dev': 2050, u'wgrp': False, u'isreg': True, u'isfifo': False, u'mode': u'0644', u'pw_name': u'root', u'gid': 0, u'ischr': False, u'wusr': True})
ok: [awx-debian-build] => (item={u'rusr': True, u'uid': 0, u'rgrp': True, u'xoth': False, u'islnk': False, u'woth': False, u'nlink': 1, u'issock': False, u'mtime': 1555059672.630828, u'gr_name': u'root', u'path': u'/tmp/awx-build/awx-logos/awx/ui/client/assets/awx-logo.pdf', u'xusr': False, u'atime': 1555059673.1268194, u'inode': 9834208, u'isgid': False, u'size': 485970, u'isdir': False, u'ctime': 1555059672.630828, u'roth': True, u'isblk': False, u'xgrp': False, u'isuid': False, u'dev': 2050, u'wgrp': False, u'isreg': True, u'isfifo': False, u'mode': u'0644', u'pw_name': u'root', u'gid': 0, u'ischr': False, u'wusr': True})
ok: [awx-debian-build] => (item={u'rusr': True, u'uid': 0, u'rgrp': True, u'xoth': False, u'islnk': False, u'woth': False, u'nlink': 1, u'issock': False, u'mtime': 1555059672.630828, u'gr_name': u'root', u'path': u'/tmp/awx-build/awx-logos/awx/ui/client/assets/variables.less', u'xusr': False, u'atime': 1555059673.1268194, u'inode': 9834213, u'isgid': False, u'size': 771, u'isdir': False, u'ctime': 1555059672.630828, u'roth': True, u'isblk': False, u'xgrp': False, u'isuid': False, u'dev': 2050, u'wgrp': False, u'isreg': True, u'isfifo': False, u'mode': u'0644', u'pw_name': u'root', u'gid': 0, u'ischr': False, u'wusr': True})
ok: [awx-debian-build] => (item={u'rusr': True, u'uid': 0, u'rgrp': True, u'xoth': False, u'islnk': False, u'woth': False, u'nlink': 1, u'issock': False, u'mtime': 1555059672.630828, u'gr_name': u'root', u'path': u'/tmp/awx-build/awx-logos/awx/ui/client/assets/default.strings.json', u'xusr': False, u'atime': 1555059673.1268194, u'inode': 9834209, u'isgid': False, u'size': 53, u'isdir': False, u'ctime': 1555059672.630828, u'roth': True, u'isblk': False, u'xgrp': False, u'isuid': False, u'dev': 2050, u'wgrp': False, u'isreg': True, u'isfifo': False, u'mode': u'0644', u'pw_name': u'root', u'gid': 0, u'ischr': False, u'wusr': True})
ok: [awx-debian-build] => (item={u'rusr': True, u'uid': 0, u'rgrp': True, u'xoth': False, u'islnk': False, u'woth': False, u'nlink': 1, u'issock': False, u'mtime': 1555059672.630828, u'gr_name': u'root', u'path': u'/tmp/awx-build/awx-logos/awx/ui/client/assets/favicon.ico', u'xusr': False, u'atime': 1555059673.1268194, u'inode': 9834210, u'isgid': False, u'size': 15086, u'isdir': False, u'ctime': 1555059672.630828, u'roth': True, u'isblk': False, u'xgrp': False, u'isuid': False, u'dev': 2050, u'wgrp': False, u'isreg': True, u'isfifo': False, u'mode': u'0644', u'pw_name': u'root', u'gid': 0, u'ischr': False, u'wusr': True})

TASK [build-awx-package : install python dependencies stage1] **********************************************************************************************************************************************
fatal: [awx-debian-build]: FAILED! => {"changed": false, "msg": "No setuptools found in remote host, please install it first."}

awx-manage runworker --only-channels 'websocket.*' fails

In

ExecStart={{ awx_venv_awx }}/bin/awx-manage runworker --only-channels 'websocket.*'

usage: awx-manage runworker [-h] [--layer LAYER] [--version] [-v {0,1,2,3}]
                            [--settings SETTINGS] [--pythonpath PYTHONPATH]
                            [--traceback] [--no-color] [--force-color]
                            channels [channels ...]
awx-manage runworker: error: unrecognized arguments: --only-channels

official debian package ?

Quoting #5 (comment)

I don't think its possible to comply with debian guidelines. The current package contains hundrets of python libraries installed by pip (which is not allowed for packages in the official repo). Some of them are not available as a standalonge package on debian or not in the needed version. Even if it would be possible, maintaining the package dependencies would be a huge time consuming task.

When the main consumer of a dependency is a specific application, it is allowed to bundle it in the debian package. However such cases need to be evaluated one by one - you can't just bundle everything blindly. We have a similar problem with nodejs in debian (btw i am maintaining several packages there).
Anyway i don't have a clear understanding of how awx is packaged. Are you running the official installer way inside a container and copying everything afterwise ? Is there any chance to simplify that process ?

please embed a sample nginx config

This worked here:

/etc/nginx/sites-enabled/awx

upstream awx-web {
  server 127.0.0.1:8052;
}

upstream awx-uwsgi {
  server 127.0.0.1:8050;
}

upstream awx-daphne {
  server 127.0.0.1:8051;
}

server {
  listen 443 ssl http2;
  listen [::]:443 ssl http2;
  server_name awx.example.com;

  access_log /var/log/nginx/awx.log

  location /static/ {
    alias /usr/share/awx/static/;
  }

  location /websocket {
    # Pass request to the upstream alias
    proxy_pass http://awx-daphne;
    # Require http version 1.1 to allow for upgrade requests
    proxy_http_version 1.1;
    # We want proxy_buffering off for proxying to websockets.
    proxy_buffering off;
    # http://en.wikipedia.org/wiki/X-Forwarded-For
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    # enable this if you use HTTPS:
    proxy_set_header X-Forwarded-Proto https;
    # pass the Host: header from the client for the sake of redirects
    proxy_set_header Host $http_host;
    # We've set the Host header, so we don't need Nginx to muddle
    # about with redirects
    proxy_redirect off;
    # Depending on the request value, set the Upgrade and
    # connection headers
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
  }

  location / {
    # Add trailing / if missing
    rewrite ^(.*)$http_host(.*[^/])$ $1$http_host$2/ permanent;
    uwsgi_read_timeout 120s;
    uwsgi_pass awx-uwsgi;
    include /etc/nginx/uwsgi_params;
    proxy_set_header X-Forwarded-Port 443;
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.