source-to-image

A tool for building artifacts from source and injecting into container images

APACHE-2.0 License

Downloads
18
Stars
2.5K
Committers
89

Bot releases are hidden (Show)

source-to-image - v1.1.7

Published by bparees over 7 years ago

  • Ignore blank lines in .s2iignore file
  • Allow presence of a /tmp/.s2i/image_metadata.json to contribute labels to be applied to the output image
source-to-image - v1.1.6

Published by bparees over 7 years ago

  • Ensure default pull policy is set
  • Support runtime image pull policy configuration
  • Remove deprecated --force-pull flag
  • Retry on image pull failures
  • Increase the log level threshold of some log messages
  • Redact credentials from proxy values before logging them
  • Binaries are now built fully static
  • Release binaries are now build with debug symbols stripped for smaller size
  • Share a single docker-engine client instance to reduce go routine creation
  • Ensure docker client related go routines are properly terminated
  • Fixes to the s2i examples
  • Pull image immediately before use to reduce timing window in which the image is removed after being pulled
source-to-image - v1.1.5

Published by bparees over 7 years ago

  • logging cleanup
  • remove timeout enforcement on image commit
  • fix handling of image pull policy for rebuild operations
  • do not force remove containers, kill them first and then remove them
  • use "." instead of "source" to run scripts as it is more portable
  • fix edge case where internal scripts could get left in the application image
  • use image metadata, not container metadata, when probing images for default user information
  • support volume mounting flags (e.g. selinux :z) when using volume arguments to builds
source-to-image - v1.1.4

Published by bparees almost 8 years ago

  • Invoke callback URL if build fails (align with documentation)
  • Fixed potential hang conditions during build operations
  • Cleaned up example implementations
  • Handle empty docker auth configurations cleanly
  • Streamline tar operations to avoid writing temporary directories
  • Remove race condition in docker api interaction
source-to-image - v1.1.3

Published by bparees almost 8 years ago

  • Remove Kubernetes docker api dependencies in preference to docker-engine client apis
  • Fixed handling of image sha ids for pulling/inspecting images
  • Tolerate arbitrary numbers of path segments in docker image specifications
  • Fixed some timing issues in handling of tar streams
  • Improved compatibility with non-native Docker environments (mac, windows, remote docker daemons)
  • Fixed regression in handling of git submodules
source-to-image - v1.1.2

Published by bparees about 8 years ago

  • Warn user if they are operating on an empty git repo due to uncommitted local files
  • Log stderr output from assemble scripts as info to avoid scary output from things like npm that send all output to stderr
  • When overriding the entrypoint, use /usr/bin/env instead of /bin/env and only override the entrypoint if the image includes a default entrypoing
  • Fix line number reporting from glog output
  • Use correct auth credentials when pulling a runtime image for an extended build
  • Switch to docker/docker-client and k8s/engine-api from fsouza/go-docker-client
  • Fix intermittent hang when performing assemble/commit operations
  • Increase timeout when waiting on the docker daemon
  • Rebuild behavior was broken due to accessing the wrong image for label metadata
source-to-image - v1.1.1

Published by bparees about 8 years ago

  • Properly handle runtime-assemble scripts that exist inside the runtime image
  • Fix permission issues with secret injection
  • Fix permission denied during temporary directory deletion on Windows
  • Override container entrypoint to "/bin/env" during assembly process to avoid conflicts w/ image entrypoints
source-to-image - v1.1.0

Published by bparees over 8 years ago

The most notable change in this release is the availability of extended builds which are documented here:
https://github.com/openshift/source-to-image/blob/master/docs/runtime_image.md

Other updates/fixes:

  • Code cleanup in signal handling logic
  • Cleanup image labels
  • Reworked logging logic to provide better default logging output
  • Fix symlink handling logic in tar stream processing
  • Explicitly name containers created by s2i during building
  • Fix handling of #ref suffixes on local filesystem git paths
  • Replaced broken --recursive flag with working --ignore-submodules flag (defaults to false)
  • Updated fsouza/go-dockerclient dependency to latest version, fixing some docker config.json parsing bugs
source-to-image - v1.0.9

Published by bparees over 8 years ago

  • Fix up test script generated by s2i create
source-to-image - v1.0.8

Published by bparees over 8 years ago

  • Allow -e (environment) flag to be passed multiple times
  • Revert entrypoint setting behavior due to regression introduced
  • Support bind mounts during build process
  • Better error reporting on image commit failures
source-to-image - v1.0.7

Published by bparees over 8 years ago

  • Fix source path in nginx example assemble script
  • Handle user:group specification in builder image Dockerfiles (treat as a numeric uid)
  • Override the entrypoint instead of only the command when launching containers for assemble/etc
source-to-image - v1.0.6

Published by bparees over 8 years ago

  • Fixed deadlock issue that can occur during incremental builds due to missing pipe closures
  • Added flag to allow capability dropping during build execution
  • Output correct tag name in logging
  • Introduce option to use copy instead of git clone for local source repository builds
  • Add timeout handling for Docker api calls
  • Refactor runcontainer implementation to simplify it
  • Fix issues related to deferring file closures before checking if opening them had an error
source-to-image - v1.0.5

Published by bparees over 8 years ago

  • Fix file descriptor leak when .dockercfg was found
  • Switched generated examples to user /usr/libexec/s2i for scripts
  • Additional improvements to generated examples
  • Fixes to file copying when injecting source code
  • New image creation tutorial documentation
  • Fix bugs around script location handling
  • Support injecting additional files into the assemble process (and remove before committing the image)
  • Deprecate .sti directory in favor of .s2i
  • Always fail if strategy is PullAlways and the pull fails
  • Better logging when extracting the contents of the injected source
  • Fix bug related to image tags that ended in hex ids
source-to-image - v1.0.4

Published by bparees almost 9 years ago

  • Updated Cobra dependency for better help output
  • Do not call chmod on Windows
  • Various fixes to tar logging and path handling
  • Remove glog prefix on build logs unless log level is verbose
  • Add example to build help output
  • Various fixes for git url parsing
  • Deprecate --force-pull, replace with --pull-policy
  • Validation check for docker daemon availability
  • Fix path joining for paths produced on Windows but used inside a container
  • Better logging when docker client invocations fail
  • Warn users if their override s2i scripts are in the wrong directory in their source repository
  • Add option to specify the user for executing the assemble script during the build process
  • Provide additional info about the source that was built when invoking optional webhook callback
  • Fixed issue with copying local filesystem paths that did not have a trailing slash
  • Added committer and author information to source information included in the resulting image
  • Proper handling of submodules when building a specific commit of a repository
  • Fix handling of symlinks in source repositories
  • Display s2i version in build logs when run in verbose mode
source-to-image - v1.0.3

Published by bparees almost 9 years ago

  • Allow recursive git cloning to be disabled
  • Report errors from git cloning
  • Fix local source path support
  • Prefer git SCM plugin over file when git binary exists
    *Merge labels of parent image when performing layered builds
  • Use unix-style path separators when creating tar files
  • Include full git commit hash in output image
  • Fix handling of symlinks in source and artifact inputs
source-to-image - v1.0.2

Published by bparees about 9 years ago

  • fixed onbuild strategy when no output image is specified
  • added .s2iignore file where you can specify which files should be ignored from source when uploading those into builder image
  • allow ssh-based git repository
  • added --allowed-uids flag to specify a range of allowed user ids for the builder image to be run with
  • Added --context-dir value to the build information labels
  • Added --run flag to run the image after successful build
  • Fixed --force-pull for incremental builds
  • Renamed default --dockercfg-path to use $HOME/.docker/config.json instead of $HOME/.dockercfg
  • Allowed using separate credentials to pull previous image for incremental builds
  • Rebranded sti into s2i
  • Added support for go1.5
source-to-image - v1.0.1

Published by bparees over 9 years ago

  • Fixed warning regarding invalid source repository (https://bugzilla.redhat.com/show_bug.cgi?id=1190106)
  • Added logic to use local image if pull fails, warning a user about the fact.
  • Whitelisted EOF error when streaming docker output
  • Added labels with build information in resulting image (commit id, branch, context directory, author, date, etc)
  • Renamed io.s2i.scripts-url -> io.openshift.s2i.scripts-url and io.s2i.destination -> io.openshift.s2i.destination labels
  • Added sti rebuild command
  • Cleaned up sti create command
source-to-image - v1.0

Published by bparees over 9 years ago

1.0 Changelog

  • switched from using environment variables to labels:
    • STI_SCRIPTS_URL -> io.s2i.scripts-url
    • STI_LOCATION -> io.s2i.destination
  • renamed location flag and label to destination
  • fixed handling relative paths when specifying --scripts-url flag
  • cleaned up internal API
  • adding 'latest' tag for builder when no tag is specified
  • fixed flag error handling
  • added support for --environment-file/-E
  • fixed getting output from containers
source-to-image - v0.5.1

Published by bparees over 9 years ago

  • Updated release builder image to cross compile properly.

Note: This release includes osx and windows binaries again.

source-to-image - v0.5

Published by bparees over 9 years ago

  • Added --dockercfg-path to allow users pulling Docker images from private repositories
  • Use less layers when adding environment variables to the output Docker image
  • Display output from stderr when running save-artifacts scripts
  • Fix issue when having an archive with many files can reach the system limits (ulimit -n)
  • Added human-friendly printer for the STI request object (--loglevel=>2)
  • Prevent pulling the previous image during incremental build when --force-pull=false
  • Switched to use dashed case for command line arguments (--forcePull is now --force-pull)

Note: We ran into some issues with the cross compiler so we were not able to produce the mac and windows binaries, but you should be able to build your own version in those environments.