8000 [stapel image] More fixes for stapel · Issue #1490 · werf/werf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

[stapel image] More fixes for stapel #1490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
distorhead opened this issue Apr 21, 2019 · 5 comments · Fixed by #1766
Closed

[stapel image] More fixes for stapel #1490

distorhead opened this issue Apr 21, 2019 · 5 comments · Fixed by #1766
Milestone

Comments

@distorhead
Copy link
Member
distorhead commented Apr 21, 2019
  • Yum+ansible should work. Not fixed, new issue created: Yum+ansible not working #1798.
  • Add gpg: ansible apt_key module does not work.
  • Add unzip.
  • Unarchive for tar-archive does not work, though tar is in the stapel.
  • Add more docker layers for stapel image to speed up downloading.
  • logboek.so should be built with stapel image.
  • groupadd/useradd should be in stapel (package shadow in alpine).
@distorhead distorhead added this to the 1.0 stable milestone Apr 26, 2019
@distorhead
Copy link
Member Author
distorhead commented Jul 5, 2019

Failed to change ownership of the temporary files Ansible needs to create despite connecting as a privileged

Problem may arise when running task with become user:

  - name: "Install Gemfile dependencies with bundler"
    shell: |
      set -e
      source /etc/profile.d/rvm.sh
      export BUNDLE_CACHE_PATH=/var/cache/bundle/data
      export BUNDLE_GLOBAL_GEM_CACHE=1
      bundle install -j4 --path vendor/bundle
    args:
      executable: /bin/bash
      chdir: /app
    become: yes
    become_user: app

Not fixed, new issue created: #1801.

@distorhead
Copy link
Member Author
distorhead commented Aug 12, 2019

@distorhead
Copy link
Member Author
distorhead commented Aug 19, 2019
  • Update ansible itself.

@distorhead
Copy link
Member Author
distorhead commented Sep 10, 2019
  • Utf-8 chars are not allowed in python requirements.txt:
django_cacheops>=4.2.0,<4.3.0
# FIXME: Привет мир
django-dirtyfields>=1.3,<1.4
  - name: Python requirements develop.txt
    shell: |
      python3.6 -m pip install -q -r develop.txt
    args:
      chdir: /app/src/requirements
│ │ │ img/install  ┌ shell 'Python requirements develop.txt' [python3.6 -m pip install -q -r develop.txt]
│ │ │ img/install  │ stderr:
│ │ │ img/install  │   ERROR: Exception:
│ │ │ img/install  │   Traceback (most recent call last):
│ │ │ img/install  │     File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 188, in main
│ │ │ img/install  │       status = self.run(options, args)
│ │ │ img/install  │     File "/usr/local/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 319, in run
│ │ │ img/install  │       self.name, wheel_cache
│ │ │ img/install  │     File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 298, in populate_requirement_set
│ │ │ img/install  │       use_pep517=options.use_pep517):
│ │ │ img/install  │     File "/usr/local/lib/python3.6/site-packages/pip/_internal/req/req_file.py", line 113, in parse_requirements
│ │ │ img/install  │       for req in req_iter:
│ │ │ img/install  │     File "/usr/local/lib/python3.6/site-packages/pip/_internal/req/req_file.py", line 233, in process_line
│ │ │ img/install  │       for req in parsed_reqs:
│ │ │ img/install  │     File "/usr/local/lib/python3.6/site-packages/pip/_internal/req/req_file.py", line 104, in parse_requirements
│ │ │ img/install  │       filename, comes_from=comes_from, session=session
│ │ │ img/install  │     File "/usr/local/lib/python3.6/site-packages/pip/_internal/download.py", line 666, in get_file_content
│ │ │ img/install  │       content = auto_decode(f.read())
│ │ │ img/install  │     File "/usr/local/lib/python3.6/site-packages/pip/_internal/utils/encoding.py", line 38, in auto_decode
│ │ │ img/install  │       locale.getpreferredencoding(False) or sys.getdefaultencoding(),
│ │ │ img/install  │   UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 484: ordinal not in range(128)
│ │ │ img/install  │ non-zero return code
│ │ │ img/install  │ exit code: 2
│ │ │ img/install  └ shell 'Python requirements develop.txt' [python3.6 -m pip install -q -r develop.txt] (1.18 seconds) FAILED

@distorhead
Copy link
Member Author
distorhead commented Oct 2, 2019

TODO:

  • Write integration tests.
  • Fix build scripts: try to use --cache-from again.
  • Infrastructure: try to store build cache on dedicated virtual machine in openstack.
  • Update LFS packages list to the latest version.
  • Small fixes (FIXME and TODO) in stapel/Dockerfile which need full rebuild.
  • Try to optimize flant/werf-stapel:0.2.2 from 400Mb to 200-300Mb.

Upd.
Separate issue created: #1803

@distorhead distorhead changed the title More fixes for stapel [stapel image] More fixes for stapel Oct 2, 2019
distorhead added a commit that referenced this issue Oct 2, 2019
Not fixed yet 2 problems:
 - #1798
 - #1801
5F07 @distorhead distorhead closed this as completed in #1766 Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0