Giter VIP home page Giter VIP logo

docker_base_images's People

Contributors

albreis avatar cwoac avatar cwrau avatar dependabot[bot] avatar egvimo avatar f1uxcapacitor avatar gitter-badger avatar hadatko avatar renovate-bot avatar renovate[bot] avatar sven-codeculture avatar tsopokis avatar vladgh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker_base_images's Issues

Prefix gets doubled when restoring a backup so archive not copied

When restoring a backup using a prefix this function causes the prefix to get doubled so the aws s3 cp command fails.

get_archive(){
  if [[ -s $_restore_file ]]; then
    return
  else
    # Download the latest archive from S3
    set_up_s3
    _restore_file="$(get_latest_s3_archive)"

    if [[ -n "$_restore_file" ]]; then
      aws s3 cp "${_aws_s3_path}/${_restore_file}" "$_restore_file"
    fi
  fi
}

With a prefix of "myprefix" the script attempts to copy the backup from: "myprefix/myprefix/hourly..."

The issue is that aws_s3_path has the prefix at the end, and restore_file has the prefix at the start.

Backup restore doesn't work

Hey, I'm using your backup image and it works great but I'm having an issue restoring.

When I call the restore command I get the error:

fatal error: Parameter validation failed: Invalid bucket name "s3:": Bucket name must match the regex "^[a-zA-Z0-9.\-_]{1,255}$"

If I echo out the bucket name it's trying to use I get:

s3://s3://[my-bucket]/[prefix]/[prefix]/hourly/2017-06-28_03-00-04.tar.xz

so it seem the s3:// gets doubled and the [prefix] gets doubled as well in the url construction.

Changing linke 167 in entrypoint.sh from

aws s3 cp "s3://${AWS_S3_PATH}/${RESTORE_FILE}" "$RESTORE_FILE"

to

aws s3 cp "s3://${AWS_S3_BUCKET}/${RESTORE_FILE}" "$RESTORE_FILE"

Seems to fix the path.

When you set a WATCHDIR in s3sync it still tries to sync from S3 to /sync on startup

Your main:

main(){
  if [[ ! "$S3PATH" =~ s3:// ]]; then
    log 'No S3PATH specified' >&2; exit 1
  fi

  # Run initial sync
  sync_files "$S3PATH" "$DESTINATION"

  # Exit if argument is 'once'
  if [[ "${*:-}" == 'once' ]]; then exit; fi

  # Setup inotify or cron job
  if [[ -n "$WATCHDIR" ]]; then
    watch_directory
  elif [[ -n "$CRON_TIME" ]]; then
    run_cron
  fi
}

Note that the initial sync is run even if WATCHDIR is specified. I would assume that the behavior would be that if a WATCHDIR is specified, only that directory is synced to S3. I'm assuming there should be no sync from S3 -> destination in this case.

Fix healthcheck high CPU usage

The healthcheck for the puppetserver image uses puppet to get the certificate paths. This adds an unnecessary burden to the CPU for every interval.
A simple hostname interpolation would be much better (ex: --cert "/etc/puppetlabs/puppet/ssl/certs/$(hostname).pem"), which should work just as well, but keep the load to a minimum.

Codecs issue

Hi @vladgh.

Your dockerized minidlna really great! Thank you for it.

Is it possible to add support for more formats for dlna server? Like example, avi is not exposed by server to clients. Maybe in scope of this, if some additional codecs are missing too it could be added to image.

Thanks

Do not log S3 copy and sync progress

In the logs this looks like:
Completed 256.0 KiB/3.8 MiB (481.2 KiB/s) with 1 file(s) remaining#015Completed 512.0 KiB/3.8 MiB (869.8 KiB/s) with 1 file(s) remaining#015Completed 768.0 KiB/3.8 MiB (1.2 MiB/s) with 1 file(s) remaining #015Completed 1.0 MiB/3.8 MiB (1.5 MiB/s) with 1 file(s) remaining #015Completed 1.2 MiB/3.8 MiB (1.8 MiB/s) with 1 file(s) remaining #015Completed 1.5 MiB/3.8 MiB (2.1 MiB/s) with 1 file(s) remaining #015Completed 1.8 MiB/3.8 MiB (2.4 MiB/s) with 1 file(s) remaining #015Completed 2.0 MiB/3.8 MiB (2.6 MiB/s) with 1 file(s) remaining #015Completed 2.2 MiB/3.8 MiB (2.9 MiB/s) with 1 file(s) remaining #015Completed 2.5 MiB/3.8 MiB (3.1 MiB/s) with 1

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.