Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Apache Libcloud Website

License

NotificationsYou must be signed in to change notification settings

apache/libcloud-site

CIBuild Docker Image

This repository contains source code for a Libcloud website powered byJekyll.

System Dependencies

  • Ruby >= 3.1.1
  • Jekyll >= 4.2.2
  • Gems:bundler (gem install bundler)
  • jpgoptim (optional, for compressing images)
  • optipng (optional, for compressing images)
  • Node.js (optional, needed for Grunt tasks)

You are strongly encouraged to utilize provided Dockerfile which containsall the dependencies which makes building the website a breeze.

Keep in mind that the initial image build may take a while since all thedependencies need to be installed and build, but subsequent runs should bemuch faster.

In case you want to install all the dependencies locally outside the Dockercontainer, you are encouraged to install and uservmand use rvm to install Ruby as shown below.

rvm install 3.1.1rvm use 3.1.1gem install bundler -v"2.3.0"

Installing Ruby dependencies

rvm use 3.1.1bundle install

Installing Node.js dependencies

npm install.

Linting code

node_modules/.bin/grunt lint

Running Local Development Server

./scripts/docker-run-dev-server.sh# Non-Docker versions#./scripts/run-dev-server.sh

This will start Docker container with local development server listening on port4000 available athttp://localhost:4000/.

Building and Publishing the Website

./scripts/docker-build-site.sh# Non-Docker versions#./scripts/build-site.sh# asf-site for prod, asf-staging for staging./scripts/stage-changes.sh {asf-site,asf-staging}git push origin<branch>

Note on pre-built Docker images

To speed up local development, we offer pre-built version of theDocker imageused for local development -https://github.com/apache/libcloud-site/pkgs/container/libcloud-site-dev.

This image is used by default when using./scripts/docker-*.sh scripts.

If for some reason you want to use locally built Docker image (e.g. you havemade changes changes to the Dockerfile, Gemfile or similar), you can do that bysettingUSE_LOCAL_DOCKER_IMAGE=1 environment variable when using those scripts.

For example:

USE_LOCAL_DOCKER_IMAGE=1 ./scripts/docker-run-dev-server.sh

Branch Layout

About

Apache Libcloud Website

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2026 Movatter.jp